mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-18 21:18:10 +00:00
Codechange: Make two water functions static. (#13057)
This commit is contained in:
parent
a91d889646
commit
f0f62961e1
@ -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.
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user