Add road layout change counter, add to road veh path caches
Update layout counter when non-leaf road bits are added or removed
This commit is contained in:
@@ -182,4 +182,12 @@ RoadTypes GetCompanyRoadtypes(const CompanyID company);
|
||||
void UpdateLevelCrossing(TileIndex tile, bool sound = true, bool force_close = false);
|
||||
bool IsCrossingOccupiedByRoadVehicle(TileIndex t);
|
||||
|
||||
inline void NotifyRoadLayoutChanged()
|
||||
{
|
||||
_road_layout_change_counter++;
|
||||
}
|
||||
|
||||
void NotifyRoadLayoutChangedIfTileNonLeaf(TileIndex tile, RoadType rt, RoadBits present_bits);
|
||||
void NotifyRoadLayoutChangedIfSimpleTunnelBridgeNonLeaf(TileIndex start, TileIndex end, DiagDirection start_dir, RoadType rt);
|
||||
|
||||
#endif /* ROAD_FUNC_H */
|
||||
|
||||
Reference in New Issue
Block a user