diff options
author | rubidium <rubidium@openttd.org> | 2010-08-28 14:14:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-28 14:14:37 +0000 |
commit | 2fb18e975c0d9bcd75e3536bf41192c5fedda8b6 (patch) | |
tree | 1679e9e6786d2599682c0bcc697071426b5d7e22 /src/aircraft_cmd.cpp | |
parent | 702cc96943a5ffb52fd59718075667044a86775e (diff) | |
download | openttd-2fb18e975c0d9bcd75e3536bf41192c5fedda8b6.tar.xz |
(svn r20645) -Codechange [FS#4086]: unify the code for checking for breakdown handling as well (Hirundo)
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 3b7b9044a..1a7710f53 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -1775,14 +1775,7 @@ static bool AircraftEventHandler(Aircraft *v, int loop) if (v->vehstatus & VS_STOPPED) return true; - /* aircraft is broken down? */ - if (v->breakdown_ctr != 0) { - if (v->breakdown_ctr <= 2) { - v->HandleBreakdown(); - } else { - if (!v->current_order.IsType(OT_LOADING)) v->breakdown_ctr--; - } - } + v->HandleBreakdown(); HandleAircraftSmoke(v); ProcessOrders(v); |