MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / TriggerVehicleRandomisation

Function TriggerVehicleRandomisation

src/newgrf_engine.cpp:1321–1326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1319}
1320
1321void TriggerVehicleRandomisation(Vehicle *v, VehicleRandomTrigger trigger)
1322{
1323 v->InvalidateNewGRFCacheOfChain();
1324 DoTriggerVehicleRandomisation(v, trigger, 0, true);
1325 v->InvalidateNewGRFCacheOfChain();
1326}
1327
1328/* Functions for changing the order of vehicle purchase lists */
1329

Callers 3

RunEconomyVehicleDayProcFunction · 0.85
VehicleEnterDepotFunction · 0.85
LoadUnloadVehicleFunction · 0.85

Tested by

no test coverage detected