1
0
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:
frosch
2025-04-26 14:44:55 +02:00
committed by GitHub
parent d3ae6bc9a8
commit 1ea1dbd19e
5 changed files with 30 additions and 2 deletions

View File

@@ -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;