summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-01-24 22:24:47 +0000
committerbjarni <bjarni@openttd.org>2005-01-24 22:24:47 +0000
commitf7774a007a21a21a041642c12e942512a546f346 (patch)
treea40c92393f20c790b63d3d4ac0824541652cd3c3 /aircraft_cmd.c
parent8f0ea9436394c25fdaa23e19b8023e8ae6abea4d (diff)
downloadopenttd-f7774a007a21a21a041642c12e942512a546f346.tar.xz
(svn r1652) Fix: train and road vehicle lists are now redrawn when vehicles enters/leaves a depot (Hackykid)
fix: the ship status bar was not updated properly after a breakdown if show_speed was off (Hackykid)
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 5da4b6929..ce4ee322b 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -1029,15 +1029,15 @@ static void ProcessAircraftOrder(Vehicle *v)
v->current_order.type == OT_LOADING) {
if (v->current_order.type != OT_GOTO_DEPOT ||
!(v->current_order.flags & OF_UNLOAD))
- return;
- }
+ return;
+ }
if (v->current_order.type == OT_GOTO_DEPOT &&
(v->current_order.flags & (OF_UNLOAD | OF_FULL_LOAD)) == (OF_UNLOAD | OF_FULL_LOAD) &&
- !VehicleNeedsService(v) &&
+ !VehicleNeedsService(v) &&
v->set_for_replacement == false) {
- v->cur_order_index++;
- }
+ v->cur_order_index++;
+ }
if (v->cur_order_index >= v->num_orders)
v->cur_order_index = 0;