summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-08-17 18:48:18 +0000
committerfrosch <frosch@openttd.org>2008-08-17 18:48:18 +0000
commit8daea149e910772071e1feaa977e965fb493b348 (patch)
treeb59c098a58bde6acdcbb78bc8a30588d78be2a2f
parente88e07b3bfdf2d74c8dec837bee6bb7bdbcdf687 (diff)
downloadopenttd-8daea149e910772071e1feaa977e965fb493b348.tar.xz
(svn r14095) -Fix (r14076): Trains shall not stop instantly.
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index ce9d6caa6..dd4743fff 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1079,7 +1079,7 @@ CommandCost CmdStartStopVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32
if (v->IsStoppedInDepot() && (flags & DC_AUTOREPLACE) == 0) DeleteVehicleNews(p1, vehicle_waiting_in_depot[v->type]);
v->vehstatus ^= VS_STOPPED;
- v->cur_speed = 0;
+ if (v->type != VEH_TRAIN) v->cur_speed = 0; // trains can stop 'slowly'
InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
InvalidateWindowClasses(vehicle_list[v->type]);