summaryrefslogtreecommitdiff
path: root/src/vehicle.h
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/vehicle.h
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/vehicle.h')
-rw-r--r--src/vehicle.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index 6c16c9921..02f79c50b 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -251,6 +251,9 @@ struct Vehicle {
VehicleDisaster disaster;
VehicleShip ship;
} u;
+
+ void BeginLoading();
+ void LeaveStation();
};
#define is_custom_sprite(x) (x >= 0xFD)