Codechange: Turn AnimationTrigger enums into enum classes. (#14067)

This commit is contained in:
frosch
2025-04-21 20:53:31 +02:00
committed by GitHub
parent 61a0a520f6
commit d7ddea4032
34 changed files with 124 additions and 112 deletions

View File

@@ -2395,7 +2395,7 @@ void Vehicle::LeaveStation()
/* Trigger station animation (trains only) */
if (IsTileType(this->tile, MP_STATION)) {
TriggerStationRandomisation(st, this->tile, StationRandomTrigger::VehicleDeparts);
TriggerStationAnimation(st, this->tile, SAT_TRAIN_DEPARTS);
TriggerStationAnimation(st, this->tile, StationAnimationTrigger::VehicleDeparts);
}
SetBit(Train::From(this)->flags, VRF_LEAVING_STATION);
@@ -2404,7 +2404,7 @@ void Vehicle::LeaveStation()
/* Trigger road stop animation */
if (IsStationRoadStopTile(this->tile)) {
TriggerRoadStopRandomisation(st, this->tile, StationRandomTrigger::VehicleDeparts);
TriggerRoadStopAnimation(st, this->tile, SAT_TRAIN_DEPARTS);
TriggerRoadStopAnimation(st, this->tile, StationAnimationTrigger::VehicleDeparts);
}
}