Feature: Draw infinite water when all borders are water (#13289)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user