Codechange: Rename ship docking tile related functions.

This commit is contained in:
frosch
2023-09-16 23:51:49 +02:00
committed by frosch
parent 5733145c59
commit baf7cc858b
5 changed files with 7 additions and 39 deletions

View File

@@ -2740,20 +2740,6 @@ void ClearDockingTilesCheckingNeighbours(TileIndex tile)
}
}
/**
* Check if a dock tile can be docked from the given direction.
* @param t Tile index of dock.
* @param d DiagDirection adjacent to dock being tested. (unused)
* @return True iff the dock can be docked from the given direction.
*/
bool IsValidDockingDirectionForDock(TileIndex t, DiagDirection d)
{
assert(IsDockTile(t));
StationGfx gfx = GetStationGfx(t);
return gfx >= GFX_DOCK_BASE_WATER_PART;
}
/**
* Find the part of a dock that is land-based
* @param t Dock tile to find land part of