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
commit9bfb3f08d95bf308eb5da9e59b9dc9fb214de6a1 (patch)
treeffa45998168a4f37d45b9d9d3e429ee18cc906c0 /src/aircraft_cmd.cpp
parent1f0206f62d478540f7b96a86999944b0cdac7492 (diff)
downloadopenttd-9bfb3f08d95bf308eb5da9e59b9dc9fb214de6a1.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 &&