summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-11 12:29:47 +0000
committerrubidium <rubidium@openttd.org>2007-11-11 12:29:47 +0000
commit6e3169815060401948b751dec3bdd72ba0ce736b (patch)
tree6c96066fc259e92d2f85bd9c90138f918e18275b
parent8725f2b857fc2515b51e980cf74075fb69d08349 (diff)
downloadopenttd-6e3169815060401948b751dec3bdd72ba0ce736b.tar.xz
(svn r11406) -Fix: wrong triggers would be activated on callback 32 for vehicles.
-rw-r--r--src/newgrf_engine.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/newgrf_engine.h b/src/newgrf_engine.h
index 2ddeaa17c..bb86661e2 100644
--- a/src/newgrf_engine.h
+++ b/src/newgrf_engine.h
@@ -42,15 +42,15 @@ uint GetVehicleProperty(const Vehicle *v, uint8 property, uint orig_value);
uint GetEngineProperty(EngineID engine, uint8 property, uint orig_value);
enum VehicleTrigger {
- VEHICLE_TRIGGER_NEW_CARGO = 1,
+ VEHICLE_TRIGGER_NEW_CARGO = 0x01,
/* Externally triggered only for the first vehicle in chain */
- VEHICLE_TRIGGER_DEPOT = 2,
+ VEHICLE_TRIGGER_DEPOT = 0x02,
/* Externally triggered only for the first vehicle in chain, only if whole chain is empty */
- VEHICLE_TRIGGER_EMPTY = 4,
+ VEHICLE_TRIGGER_EMPTY = 0x04,
/* Not triggered externally (called for the whole chain if we got NEW_CARGO) */
- VEHICLE_TRIGGER_ANY_NEW_CARGO = 8,
+ VEHICLE_TRIGGER_ANY_NEW_CARGO = 0x08,
/* Externally triggered for each vehicle in chain */
- VEHICLE_TRIGGER_CALLBACK_32 = 10,
+ VEHICLE_TRIGGER_CALLBACK_32 = 0x10,
};
void TriggerVehicle(Vehicle *veh, VehicleTrigger trigger);