mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 01:42:38 +01:00
Add: [NewGRF] Station/roadstop animation-triggers 'tile loop' (bit 7) and 'path reservation' (bit 8). (#14080)
This commit is contained in:
@@ -116,6 +116,7 @@ bool TryReserveRailTrack(TileIndex tile, Track t, bool trigger_stations)
|
||||
if (trigger_stations) {
|
||||
auto *st = BaseStation::GetByTile(tile);
|
||||
TriggerStationRandomisation(st, tile, StationRandomTrigger::PathReservation);
|
||||
TriggerStationAnimation(st, tile, StationAnimationTrigger::PathReservation);
|
||||
}
|
||||
MarkTileDirtyByTile(tile); // some GRFs need redraw after reserving track
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user