summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authorKUDr <KUDr@openttd.org>2007-01-13 18:55:54 +0000
committerKUDr <KUDr@openttd.org>2007-01-13 18:55:54 +0000
commit92e42d621d24459fdfb8231e69e66562c1f5e759 (patch)
treeffa45998168a4f37d45b9d9d3e429ee18cc906c0 /src/aircraft_cmd.cpp
parenta6c23ae1ed38c25ce1cacfca025adc196c9071a5 (diff)
downloadopenttd-92e42d621d24459fdfb8231e69e66562c1f5e759.tar.xz
(svn r8110) -Codechange: direct Vehicle::current_order.type changes (to OT_LOADING and OT_LEAVESTATION) replaced by v->BeginLoading() and v->LeaveStation() calls. This should allow easy hooking of those state transitions in order to maintain vehicle loading queue.
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index b694d7247..a0c59ad67 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -1370,7 +1370,7 @@ static void AircraftEntersTerminal(Vehicle *v)
}
old_order = v->current_order;
- v->current_order.type = OT_LOADING;
+ v->BeginLoading();
v->current_order.flags = 0;
if (old_order.type == OT_GOTO_STATION &&