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

Method UpdatePositionAndViewport

src/vehicle.cpp:1745–1749  ·  view source on GitHub ↗

* Update the position of the vehicle, and update the viewport. */

Source from the content-addressed store, hash-verified

1743 * Update the position of the vehicle, and update the viewport.
1744 */
1745void Vehicle::UpdatePositionAndViewport()
1746{
1747 if (this->type != VEH_EFFECT) this->UpdatePosition();
1748 this->UpdateViewport(true);
1749}
1750
1751/**
1752 * Marks viewports dirty where the vehicle's image is.

Callers 15

ChimneySmokeTickFunction · 0.80
SteamSmokeTickFunction · 0.80
DieselSmokeTickFunction · 0.80
ElectricSparkTickFunction · 0.80
SmokeTickFunction · 0.80
ExplosionLargeTickFunction · 0.80
BreakdownSmokeTickFunction · 0.80
ExplosionSmallTickFunction · 0.80
BulldozerTickFunction · 0.80
BubbleTickFunction · 0.80
CreateEffectVehicleFunction · 0.80
HelicopterTickHandlerFunction · 0.80

Calls 2

UpdatePositionMethod · 0.95
UpdateViewportMethod · 0.95

Tested by

no test coverage detected