From f486486dd81f2791942678c11f4e2926c2309ae2 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 31 Oct 2007 22:09:23 +0000 Subject: (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. --- src/aircraft_cmd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/aircraft_cmd.cpp') 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); -- cgit v1.2.3-54-g00ecf