# HG changeset patch # User frosch # Date 1218998898 0 # Node ID a3a283320355f19a996f79d0d06723d0da13b2bb # Parent ba050f82ad30ef67e20e702a3e9b8ec79f6261bd (svn r14095) -Fix (r14076): Trains shall not stop instantly. diff -r ba050f82ad30 -r a3a283320355 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]);