1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 19:39:12 +00:00

(svn r9678) -Codechange: Support changing of aircraft running cost via callback 36.

This commit is contained in:
2007-04-19 18:49:40 +00:00
parent 0552b19225
commit a40d53d8d1

View File

@@ -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;