(svn r19756) -Codechange: move UpdateViewport() from Vehicle to SpecializedVehicle in order to improve performance

This commit is contained in:
smatz
2010-05-03 23:36:17 +00:00
parent 5a0934afff
commit 27949d219d
6 changed files with 23 additions and 21 deletions

View File

@@ -292,7 +292,7 @@ void Ship::UpdateDeltaXY(Direction direction)
this->z_extent = 6;
}
void RecalcShipStuff(Vehicle *v)
void RecalcShipStuff(Ship *v)
{
v->UpdateViewport(false, true);
SetWindowDirty(WC_VEHICLE_DEPOT, v->tile);