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

Function AnimateRoadStopTile

src/newgrf_roadstop.cpp:373–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371};
372
373void AnimateRoadStopTile(TileIndex tile)
374{
375 const RoadStopSpec *ss = GetRoadStopSpec(tile);
376 if (ss == nullptr) return;
377
378 RoadStopAnimationBase::AnimateTile(ss, BaseStation::GetByTile(tile), tile, ss->flags.Test(RoadStopSpecFlag::Cb141RandomBits));
379}
380
381void TriggerRoadStopAnimation(BaseStation *st, TileIndex trigger_tile, StationAnimationTrigger trigger, CargoType cargo_type)
382{

Callers 1

AnimateTile_StationFunction · 0.85

Calls 3

GetRoadStopSpecFunction · 0.85
AnimateTileFunction · 0.85
TestMethod · 0.80

Tested by

no test coverage detected