From a40d53d8d1716ab2d9422fd58fc61ca049625de5 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 19 Apr 2007 18:49:40 +0000 Subject: (svn r9678) -Codechange: Support changing of aircraft running cost via callback 36. --- src/aircraft_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 1acf9dd4c..12e569552 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -717,7 +717,7 @@ void OnNewDay_Aircraft(Vehicle *v) if (v->vehstatus & VS_STOPPED) return; - int32 cost = AircraftVehInfo(v->engine_type)->running_cost * _price.aircraft_running / 364; + int32 cost = GetVehicleProperty(v, 0x0E, AircraftVehInfo(v->engine_type)->running_cost) * _price.aircraft_running / 364; v->profit_this_year -= cost >> 8; -- cgit v1.2.3-70-g09d2