diff options
author | frosch <frosch@openttd.org> | 2011-11-09 16:39:34 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-11-09 16:39:34 +0000 |
commit | 50b480b9596f18babc550e68cd3608ee6342e82c (patch) | |
tree | 9edd0060e11962728985c9c5a7834bed08d127e4 /src/newgrf_engine.h | |
parent | 026317bb444c1165ba96904f8e5a300b1a657539 (diff) | |
download | openttd-50b480b9596f18babc550e68cd3608ee6342e82c.tar.xz |
(svn r23174) -Codechange: Deduplicate code between GetEngineProperty() and GetVehicleProperty().
Diffstat (limited to 'src/newgrf_engine.h')
-rw-r--r-- | src/newgrf_engine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_engine.h b/src/newgrf_engine.h index 017a7e87b..f63b446a6 100644 --- a/src/newgrf_engine.h +++ b/src/newgrf_engine.h @@ -46,7 +46,7 @@ bool UsesWagonOverride(const Vehicle *v); /* Handler to Evaluate callback 36. If the callback fails (i.e. most of the * time) orig_value is returned */ uint GetVehicleProperty(const Vehicle *v, PropertyID property, uint orig_value); -uint GetEngineProperty(EngineID engine, PropertyID property, uint orig_value); +uint GetEngineProperty(EngineID engine, PropertyID property, uint orig_value, const Vehicle *v = NULL); enum VehicleTrigger { VEHICLE_TRIGGER_NEW_CARGO = 0x01, |