Mercurial > hg > openttd
changeset 9940:b28dd3b5ee59 draft
(svn r14095) -Fix (r14076): Trains shall not stop instantly.
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 17 Aug 2008 18:48:18 +0000 |
parents | 50b0069dc6ad |
children | 53ba5561b1c2 |
files | src/vehicle.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -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]);