Repository navigation
Features: ice on land as small patches, as the original - #77
Open
MortenLyhr wants to merge 1 commit into
Open
MortenLyhr wants to merge 1 commit into
MortenLyhr wants to merge 1 commit into
Conversation
This was referenced Nov 20, 2026
The original lays the same ice pieces on land as on the sea, but its land stands 15 units over the water (flat land 64 in its height maps, the water iWaterHeight 49, fZScale 1), so only the slabs' highest bits (9 to 17.5 units over their origin) come through: small white patches. OpenCiv4's land is barely over the water, so the whole slab showed as a white blob over the plot. Each point of an ice piece over land now lies 15 units under the ground there (a copy of the piece per way it is lowered); ice on the sea is drawn as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MortenLyhr
force-pushed
the
fix/land-ice
branch
from
November 23, 2026 08:59
1dff3d2 to
2b339b4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it changes
Ice on a land plot (tundra or grassland with ice, from a scenario or the World Builder) drew the whole ice slab as one large white blob over the plot. The original shows only small white patches there.
The original uses the same ice pieces (
IcePack/IceNN_0M.nif) on land and on the sea. Their top is 9 to 17.5 units over their origin (nearly all of it under 16). The original's land stands 15 units over the water: flat land is 64 in its height maps, the wateriWaterHeight49,fZScale1 (CIV4TerrainSettings.xml). So on land the terrain hides almost all of the slab and only its highest bits come through. OpenCiv4's land is barely over the water, so the whole slab stood on it.Now each point of an ice piece over land lies 15 units under the ground there. It is blended with the sea side over the last fifth of a plot to the shore, because OpenCiv4's land slopes to the sea over half a plot and the original's stays high almost to the shore. A piece that reaches land is a copy with its points lowered, shared by pieces lowered the same way. Ice on the sea is drawn as before. Only
MapView.cppchanges.The patches are not the same shapes as the original's: the piece chosen for each corner is random in both, and the original's flat land is not exactly level.
How it was checked
ctestpasses: 15/15 (macOS, Release; rebased on master8b7d8557).--turns 100 --map Fractal --size STANDARD --seed 7gives the same checksum as master on all 100 turns, ending atD7D43800(drawing only).🤖 Generated with Claude Code