summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-10-31 22:09:23 +0000
committerrubidium <rubidium@openttd.org>2007-10-31 22:09:23 +0000
commitfd14bd68f73915089e7e1f0bf4662d3640052183 (patch)
tree6ade01df89da801aa5ca5a2f62d3191661ca84e2 /src/aircraft_cmd.cpp
parent2bba7e860eee31477c82d4dce57d7ac94a7d8008 (diff)
downloadopenttd-fd14bd68f73915089e7e1f0bf4662d3640052183.tar.xz
(svn r11365) -Fix [FS#1288]: when stopping a ship or aircraft, set their speed to 0 so they won't continue at the speed where they were stopped at.
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index fa33bb2c0..cfcd00374 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -535,6 +535,7 @@ CommandCost CmdStartStopAircraft(TileIndex tile, uint32 flags, uint32 p1, uint32
}
v->vehstatus ^= VS_STOPPED;
+ v->cur_speed = 0;
InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR);
InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
InvalidateWindowClasses(WC_AIRCRAFT_LIST);