mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-06-03 05:31:20 -04:00
The river path tool used to carve the channel and texture the banks but never added a water layer — users had to manually run "Fill Water" afterward, which floods the entire tile. The fix is a new TerrainEditor::fillWaterAlongPath() method that adds water layers only to chunks the river segment passes through (within width + chunk-half-diagonal of the line). Per-chunk water height is set to the chunk's post-carve minimum terrain height + 0.5y offset so the water sits visibly in the channel without overflowing onto banks. The river apply path now invokes carveRiver → paintAlongPath → fillWaterAlongPath in sequence. Toast updated to mention all three. Multi-point rivers are still next on the list — the underlying math takes a single segment today, so a polyline river needs a UI revamp to capture N points + a per-segment loop. Ack'd, not done this commit.
74 KiB
74 KiB