Cache whether vehicle is currently drawn: Vehicle::IsDrawn()
This commit is contained in:
@@ -632,6 +632,8 @@ EffectVehicle *CreateEffectVehicle(int x, int y, int z, EffectVehicleType type)
|
||||
|
||||
_effect_init_procs[type](v);
|
||||
|
||||
v->UpdateIsDrawn();
|
||||
|
||||
v->UpdatePositionAndViewport();
|
||||
|
||||
v->AddEffectVehicleToTickCache();
|
||||
|
Reference in New Issue
Block a user