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

Method UpdatePosition

src/vehicle.cpp:1662–1665  ·  view source on GitHub ↗

* Update the position of the vehicle. This will update the hash that tells * which vehicles are on a tile. */

Source from the content-addressed store, hash-verified

1660 * which vehicles are on a tile.
1661 */
1662void Vehicle::UpdatePosition()
1663{
1664 UpdateVehicleTileHash(this, false);
1665}
1666
1667/**
1668 * Update the bounding box co-ordinates of the vehicle

Callers 15

ShipMoveUpDownOnLockFunction · 0.45
ReverseShipIntoTrackdirFunction · 0.45
ReverseShipFunction · 0.45
ShipControllerFunction · 0.45
CmdBuildShipFunction · 0.45
DispatchMouseWheelEventFunction · 0.45
HandleScrollbarScrollingFunction · 0.45
AddArticulatedPartsFunction · 0.45
UpdateVirtCoordMethod · 0.45
AddTextEffectFunction · 0.45
UpdateTextEffectFunction · 0.45

Calls 1

UpdateVehicleTileHashFunction · 0.85

Tested by

no test coverage detected