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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user