mirror of https://github.com/OpenTTD/OpenTTD
Codefix: Effect vehicles don't use v->tile, so shouldn't be in the vehicle tile hash. (#14302)
parent
e23a591a1e
commit
e2d066e5d3
|
@ -541,7 +541,7 @@ void AfterLoadVehiclesPhase2(bool part_of_load)
|
||||||
v->UpdateDeltaXY();
|
v->UpdateDeltaXY();
|
||||||
v->coord.left = INVALID_COORD;
|
v->coord.left = INVALID_COORD;
|
||||||
v->sprite_cache.old_coord.left = INVALID_COORD;
|
v->sprite_cache.old_coord.left = INVALID_COORD;
|
||||||
v->UpdatePosition();
|
if (v->type != VEH_EFFECT) v->UpdatePosition();
|
||||||
v->UpdateViewport(false);
|
v->UpdateViewport(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1733,7 +1733,7 @@ void Vehicle::UpdateViewport(bool dirty)
|
||||||
*/
|
*/
|
||||||
void Vehicle::UpdatePositionAndViewport()
|
void Vehicle::UpdatePositionAndViewport()
|
||||||
{
|
{
|
||||||
this->UpdatePosition();
|
if (this->type != VEH_EFFECT) this->UpdatePosition();
|
||||||
this->UpdateViewport(true);
|
this->UpdateViewport(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue