Change: Store station blocked/wires/pylons flags in map.
This stores three flags in unused map bits, and avoids having to look up station graphics and custom station specs to determine blocked/wires/pylons status. This potentially affects rail pathfinding performance. Savegame version is not bumped, as the flags can just be updated every time. (cherry picked from commit cb658e6cc6e1c114c1eaafaaa5b14849f04ca083)
This commit is contained in:
committed by
Jonathan G Rennison
parent
e162e7a331
commit
b2a1ec96f1
@@ -42,12 +42,6 @@ void RemoveDockingTile(TileIndex t);
|
||||
void ClearDockingTilesCheckingNeighbours(TileIndex tile);
|
||||
bool IsValidDockingDirectionForDock(TileIndex t, DiagDirection d);
|
||||
|
||||
/* Check if a rail station tile is traversable. */
|
||||
bool IsStationTileBlocked(TileIndex tile);
|
||||
|
||||
bool CanStationTileHavePylons(TileIndex tile);
|
||||
bool CanStationTileHaveWires(TileIndex tile);
|
||||
|
||||
void UpdateAirportsNoise();
|
||||
|
||||
bool SplitGroundSpriteForOverlay(const TileInfo *ti, SpriteID *ground, RailTrackOffset *overlay_offset);
|
||||
|
||||
Reference in New Issue
Block a user