From e261d8d9a0904ebc215c9551c6d8c0c9f34be4df Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 22 Sep 2009 19:28:57 +0000 Subject: (svn r17616) -Codechange [FS#3222]: Enumerize properties used in callback 0x36. Based on Terkhen's work. --- src/newgrf_engine.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/newgrf_engine.h') diff --git a/src/newgrf_engine.h b/src/newgrf_engine.h index aef412b63..e62150ab6 100644 --- a/src/newgrf_engine.h +++ b/src/newgrf_engine.h @@ -14,6 +14,7 @@ #include "direction_type.h" #include "newgrf_callbacks.h" +#include "newgrf_properties.h" enum { TRAININFO_DEFAULT_VEHICLE_WIDTH = 29, @@ -45,8 +46,8 @@ 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, uint8 property, uint orig_value); -uint GetEngineProperty(EngineID engine, uint8 property, uint orig_value); +uint GetVehicleProperty(const Vehicle *v, PropertyID property, uint orig_value); +uint GetEngineProperty(EngineID engine, PropertyID property, uint orig_value); enum VehicleTrigger { VEHICLE_TRIGGER_NEW_CARGO = 0x01, -- cgit v1.2.3-54-g00ecf