diff options
author | rubidium <rubidium@openttd.org> | 2007-11-11 12:29:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-11 12:29:47 +0000 |
commit | fe24593692bc6560dffca1d33db98f1a3bec805a (patch) | |
tree | 6c96066fc259e92d2f85bd9c90138f918e18275b | |
parent | d8d0babece3ab9a48e2311675ad8d7c9bd4e0872 (diff) | |
download | openttd-fe24593692bc6560dffca1d33db98f1a3bec805a.tar.xz |
(svn r11406) -Fix: wrong triggers would be activated on callback 32 for vehicles.
-rw-r--r-- | src/newgrf_engine.h | 10 |
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); |