Codechange: Unify random trigger enums and turn them into enum classes. (#14066)

This commit is contained in:
frosch
2025-04-21 20:03:34 +02:00
committed by GitHub
parent f399b8eb29
commit 61a0a520f6
28 changed files with 185 additions and 148 deletions

View File

@@ -4278,10 +4278,10 @@ static uint UpdateStationWaiting(Station *st, CargoType cargo, uint amount, Sour
ge.status.Set(GoodsEntry::State::Rating);
}
TriggerStationRandomisation(st, st->xy, SRT_NEW_CARGO, cargo);
TriggerStationRandomisation(st, st->xy, StationRandomTrigger::NewCargo, cargo);
TriggerStationAnimation(st, st->xy, SAT_NEW_CARGO, cargo);
TriggerAirportAnimation(st, AAT_STATION_NEW_CARGO, cargo);
TriggerRoadStopRandomisation(st, st->xy, RSRT_NEW_CARGO, cargo);
TriggerRoadStopRandomisation(st, st->xy, StationRandomTrigger::NewCargo, cargo);
TriggerRoadStopAnimation(st, st->xy, SAT_NEW_CARGO, cargo);