Feature: Draw infinite water when all borders are water (#13289)

This commit is contained in:
Tyler Trahan
2025-09-26 10:37:27 -04:00
committed by dP
parent e6a05f57e0
commit 25ad0317fb
11 changed files with 105 additions and 24 deletions

View File

@@ -21,7 +21,12 @@
static void DrawTile_Void(TileInfo *ti)
{
DrawGroundSprite(SPR_FLAT_BARE_LAND + SlopeToSpriteOffset(ti->tileh), PALETTE_ALL_BLACK);
/* If freeform edges are off, draw infinite water off the edges of the map. */
if (!_settings_game.construction.freeform_edges) {
DrawGroundSprite(SPR_FLAT_WATER_TILE + SlopeToSpriteOffset(ti->tileh), PAL_NONE);
} else {
DrawGroundSprite(SPR_FLAT_BARE_LAND + SlopeToSpriteOffset(ti->tileh), PALETTE_ALL_BLACK);
}
}