Mercurial > hg > openttd
changeset 9000:75ae4890d738 draft
(svn r12795) -Fix [FS#1938]: vehicles could break down during loading and keep loading. The intention of the break down code is not to break down when having zero speed, therefor break downs now do not happen when loading.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 19 Apr 2008 21:23:42 +0000 |
parents | 0a4c639d1b8f |
children | 5f7d2f36fad3 |
files | src/aircraft_cmd.cpp src/roadveh_cmd.cpp src/ship_cmd.cpp src/train_cmd.cpp |
diffstat | 4 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -2086,7 +2086,7 @@ if (v->breakdown_ctr <= 2) { HandleBrokenAircraft(v); } else { - v->breakdown_ctr--; + if (!v->current_order.IsType(OT_LOADING)) v->breakdown_ctr--; } }
--- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1844,7 +1844,7 @@ HandleBrokenRoadVeh(v); return; } - v->breakdown_ctr--; + if (!v->current_order.IsType(OT_LOADING)) v->breakdown_ctr--; } if (v->vehstatus & VS_STOPPED) return;