(svn r14095) -Fix (r14076): Trains shall not stop instantly.
authorfrosch
Sun, 17 Aug 2008 18:48:18 +0000
changeset 9940 a3a283320355
parent 9939 ba050f82ad30
child 9941 8549448b55fa
(svn r14095) -Fix (r14076): Trains shall not stop instantly.
src/vehicle.cpp
--- a/src/vehicle.cpp	Sun Aug 17 15:03:54 2008 +0000
+++ b/src/vehicle.cpp	Sun Aug 17 18:48:18 2008 +0000
@@ -1079,7 +1079,7 @@
 		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]);