summaryrefslogtreecommitdiff
path: root/src/ship_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-05-03 23:36:17 +0000
committersmatz <smatz@openttd.org>2010-05-03 23:36:17 +0000
commit00a52cc4759ecf1bde370ae4d5dfffd7ddae1a6c (patch)
treec33d9eea9f7a05b9774a143ade14805ebeb95b82 /src/ship_cmd.cpp
parentfc646a16a4326be420523e15f664c1bcd1b30a93 (diff)
downloadopenttd-00a52cc4759ecf1bde370ae4d5dfffd7ddae1a6c.tar.xz
(svn r19756) -Codechange: move UpdateViewport() from Vehicle to SpecializedVehicle in order to improve performance
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 5de839bf7..8e12a9f6e 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -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);