summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-04-19 18:49:40 +0000
committerpeter1138 <peter1138@openttd.org>2007-04-19 18:49:40 +0000
commita40d53d8d1716ab2d9422fd58fc61ca049625de5 (patch)
treecf5ecda6dc83ef4466d8e6f2cf172cca23a68240 /src
parent0552b192250e5b2ef579613988638b4cbab761fc (diff)
downloadopenttd-a40d53d8d1716ab2d9422fd58fc61ca049625de5.tar.xz
(svn r9678) -Codechange: Support changing of aircraft running cost via callback 36.
Diffstat (limited to 'src')
-rw-r--r--src/aircraft_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
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;