Mercurial > hg > openttd
diff src/newgrf_engine.h @ 18338:1acd061c150f draft
(svn r23174) -Codechange: Deduplicate code between GetEngineProperty() and GetVehicleProperty().
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 09 Nov 2011 16:39:34 +0000 (2011-11-09) |
parents | 8f6022f41538 |
children | 53bc9c32fe8d |
line wrap: on
line diff
--- a/src/newgrf_engine.h +++ b/src/newgrf_engine.h @@ -46,7 +46,7 @@ /* 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,