1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 01:19:11 +00:00

Codechange: Make two water functions static. (#13057)

This commit is contained in:
2024-11-03 23:25:51 +00:00
committed by GitHub
parent a91d889646
commit f0f62961e1
2 changed files with 2 additions and 4 deletions

View File

@@ -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.

View File

@@ -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));