From f0f62961e1e46e0cca5b1c1c98fc6dbbb9ac4f5c Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sun, 3 Nov 2024 23:25:51 +0000 Subject: [PATCH] Codechange: Make two water functions static. (#13057) --- src/water.h | 2 -- src/water_cmd.cpp | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/water.h b/src/water.h index 8829d7700f..94a7db342b 100644 --- a/src/water.h +++ b/src/water.h @@ -27,7 +27,6 @@ FloodingBehaviour GetFloodingBehaviour(TileIndex tile); void TileLoop_Water(TileIndex tile); bool FloodHalftile(TileIndex t); -void DoFloodTile(TileIndex target); void ConvertGroundTilesIntoWaterTiles(); @@ -38,7 +37,6 @@ void DrawShoreTile(Slope tileh); void MakeWaterKeepingClass(TileIndex tile, Owner o); void CheckForDockingTile(TileIndex t); -bool RiverModifyDesertZone(TileIndex tile, void *data); void MakeRiverAndModifyDesertZoneAround(TileIndex tile); static const uint RIVER_OFFSET_DESERT_DISTANCE = 5; ///< Circular tile search radius to create non-desert around a river tile. diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index 099b05f25f..3e27379794 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -429,7 +429,7 @@ CommandCost CmdBuildLock(DoCommandFlag flags, TileIndex tile) } /** Callback to create non-desert around a river tile. */ -bool RiverModifyDesertZone(TileIndex tile, void *) +static bool RiverModifyDesertZone(TileIndex tile, void *) { if (GetTropicZone(tile) == TROPICZONE_DESERT) SetTropicZone(tile, TROPICZONE_NORMAL); return false; @@ -1114,7 +1114,7 @@ FloodingBehaviour GetFloodingBehaviour(TileIndex tile) /** * Floods a tile. */ -void DoFloodTile(TileIndex target) +static void DoFloodTile(TileIndex target) { assert(!IsTileType(target, MP_WATER));