(svn r23174) -Codechange: Deduplicate code between GetEngineProperty() and GetVehicleProperty().
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user