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

Method Tick

src/ship_cmd.cpp:839–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839bool Ship::Tick()
840{
841 PerformanceAccumulator framerate(PFE_GL_SHIPS);
842
843 if (!this->vehstatus.Test(VehState::Stopped)) this->running_ticks++;
844
845 ShipController(this);
846
847 return true;
848}
849
850void Ship::SetDestTile(TileIndex tile)
851{

Callers 1

CallVehicleTicksFunction · 0.45

Calls 2

ShipControllerFunction · 0.85
TestMethod · 0.80

Tested by

no test coverage detected