src/aircraft_cmd.cpp
branchgamebalance
changeset 9903 dc85aaa556ae
parent 9896 2473804114de
child 9906 6f41b8713b65
--- a/src/aircraft_cmd.cpp	Fri Mar 23 12:03:41 2007 +0000
+++ b/src/aircraft_cmd.cpp	Sat Mar 31 12:34:36 2007 +0000
@@ -198,7 +198,7 @@
 
 static int32 EstimateAircraftCost(const AircraftVehicleInfo *avi)
 {
-	return avi->base_cost * (_price.aircraft_base >> 3) >> 5;
+	return avi->base_cost * (_eco->GetPrice(CEconomy::AIRCRAFT_BASE) >> 3) >> 5;
 }
 
 
@@ -713,7 +713,7 @@
 
 	if (v->vehstatus & VS_STOPPED) return;
 
-	int32 cost = AircraftVehInfo(v->engine_type)->running_cost * _price.aircraft_running / 364;
+	int32 cost = AircraftVehInfo(v->engine_type)->running_cost * _eco->GetPrice(CEconomy::AIRCRAFT_RUNNING) / 364;
 
 	v->profit_this_year -= cost >> 8;