Skip to content

fix: clear water features when painting plateaus, rects, and ramps#1350

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/fix-water-rendering-e5q9n
Feb 4, 2026
Merged

fix: clear water features when painting plateaus, rects, and ramps#1350
braedonsaunders merged 1 commit into
mainfrom
claude/fix-water-rendering-e5q9n

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner

When painting terrain features (plateau, rect, ramp) over existing water, the feature grid was not being cleared. This caused water to still render on top of elevated terrain because the flood-fill algorithm saw the 'water_deep'/'water_shallow' feature flag was still set.

Changes:

  • paintCircle: Now clears features to 'none' when painting elevation
  • paintRect: Now clears features to 'none' when painting elevation
  • paintRamp: Now clears features to 'none' when painting ramp

This fixes the issue where water would render on top of base terrain in AI-generated maps.

https://claude.ai/code/session_01CEq99bYXB2fmcaLE6H46Sz

When painting terrain features (plateau, rect, ramp) over existing water,
the feature grid was not being cleared. This caused water to still render
on top of elevated terrain because the flood-fill algorithm saw the
'water_deep'/'water_shallow' feature flag was still set.

Changes:
- paintCircle: Now clears features to 'none' when painting elevation
- paintRect: Now clears features to 'none' when painting elevation
- paintRamp: Now clears features to 'none' when painting ramp

This fixes the issue where water would render on top of base terrain
in AI-generated maps.

https://claude.ai/code/session_01CEq99bYXB2fmcaLE6H46Sz
@braedonsaunders braedonsaunders merged commit 6b04164 into main Feb 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants