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

Method Tick

src/roadveh_cmd.cpp:1661–1673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1659}
1660
1661bool RoadVehicle::Tick()
1662{
1663 PerformanceAccumulator framerate(PFE_GL_ROADVEHS);
1664
1665 this->tick_counter++;
1666
1667 if (this->IsFrontEngine()) {
1668 if (!this->vehstatus.Test(VehState::Stopped)) this->running_ticks++;
1669 return RoadVehController(this);
1670 }
1671
1672 return true;
1673}
1674
1675void RoadVehicle::SetDestTile(TileIndex tile)
1676{

Callers

nothing calls this directly

Calls 3

RoadVehControllerFunction · 0.85
IsFrontEngineMethod · 0.80
TestMethod · 0.80

Tested by

no test coverage detected