diff options
author | frosch <frosch@openttd.org> | 2009-09-22 19:28:57 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-09-22 19:28:57 +0000 |
commit | e261d8d9a0904ebc215c9551c6d8c0c9f34be4df (patch) | |
tree | 327a170cf567239a569acfe82e9fb9b7362c3c7b /src/newgrf_engine.cpp | |
parent | 8f45efa8ddcac130b6b115a2bdf32d7fc21b019e (diff) | |
download | openttd-e261d8d9a0904ebc215c9551c6d8c0c9f34be4df.tar.xz |
(svn r17616) -Codechange [FS#3222]: Enumerize properties used in callback 0x36. Based on Terkhen's work.
Diffstat (limited to 'src/newgrf_engine.cpp')
-rw-r--r-- | src/newgrf_engine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp index e85449548..4a566fe30 100644 --- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -1026,7 +1026,7 @@ uint16 GetVehicleCallbackParent(CallbackID callback, uint32 param1, uint32 param /* Callback 36 handlers */ -uint GetVehicleProperty(const Vehicle *v, uint8 property, uint orig_value) +uint GetVehicleProperty(const Vehicle *v, PropertyID property, uint orig_value) { uint16 callback = GetVehicleCallback(CBID_VEHICLE_MODIFY_PROPERTY, property, 0, v->engine_type, v); if (callback != CALLBACK_FAILED) return callback; @@ -1035,7 +1035,7 @@ uint GetVehicleProperty(const Vehicle *v, uint8 property, uint orig_value) } -uint GetEngineProperty(EngineID engine, uint8 property, uint orig_value) +uint GetEngineProperty(EngineID engine, PropertyID property, uint orig_value) { uint16 callback = GetVehicleCallback(CBID_VEHICLE_MODIFY_PROPERTY, property, 0, engine, NULL); if (callback != CALLBACK_FAILED) return callback; |