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 7fe444ed37
commit c9e0823a2e
11 changed files with 105 additions and 24 deletions
+6 -1
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);
}
}