1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-29 15:14:33 +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

@@ -906,8 +906,17 @@ void TriggerStationAnimation(BaseStation *st, TileIndex trigger_tile, StationAni
{
/* List of coverage areas for each animation trigger */
static const TriggerArea tas[] = {
TA_TILE, TA_WHOLE, TA_WHOLE, TA_PLATFORM, TA_PLATFORM, TA_PLATFORM, TA_WHOLE
TA_TILE, // Built
TA_WHOLE, // NewCargo
TA_WHOLE, // CargoTaken
TA_PLATFORM, // VehicleArrives
TA_PLATFORM, // VehicleDeparts
TA_PLATFORM, // VehicleLoads
TA_WHOLE, // AcceptanceTick
TA_TILE, // TileLoop
TA_PLATFORM, // PathReservation
};
static_assert(std::size(tas) == static_cast<size_t>(StationAnimationTrigger::End));
assert(st != nullptr);