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/aircraft_cmd.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/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index b979ac8cf..3defb067e 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -619,7 +619,7 @@ static void CheckIfAircraftNeedsService(Aircraft *v) Money Aircraft::GetRunningCost() const { - return GetVehicleProperty(this, 0x0E, AircraftVehInfo(this->engine_type)->running_cost) * _price.aircraft_running; + return GetVehicleProperty(this, PROP_AIRCRAFT_RUNNING_COST_FACTOR, AircraftVehInfo(this->engine_type)->running_cost) * _price.aircraft_running; } void Aircraft::OnNewDay() @@ -753,7 +753,7 @@ static void PlayAircraftSound(const Vehicle *v) void UpdateAircraftCache(Aircraft *v) { - uint max_speed = GetVehicleProperty(v, 0x0C, 0); + uint max_speed = GetVehicleProperty(v, PROP_AIRCRAFT_SPEED, 0); if (max_speed != 0) { /* Convert from original units to (approx) km/h */ max_speed = (max_speed * 129) / 10; |