diff options
Diffstat (limited to 'src/aircraft_gui.cpp')
-rw-r--r-- | src/aircraft_gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/aircraft_gui.cpp b/src/aircraft_gui.cpp index b63365361..a9e647a7d 100644 --- a/src/aircraft_gui.cpp +++ b/src/aircraft_gui.cpp @@ -92,7 +92,7 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e) SetDParam(0, (v->age + 365 < v->max_age) ? STR_AGE : STR_AGE_RED); SetDParam(2, v->max_age / 366); - SetDParam(3, _price.aircraft_running * AircraftVehInfo(v->engine_type)->running_cost >> 8); + SetDParamMoney(3, _price.aircraft_running * AircraftVehInfo(v->engine_type)->running_cost >> 8); DrawString(2, 15, STR_A00D_AGE_RUNNING_COST_YR, 0); } @@ -104,8 +104,8 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e) /* Draw profit */ { - SetDParam(0, v->profit_this_year); - SetDParam(1, v->profit_last_year); + SetDParamMoney(0, v->profit_this_year); + SetDParamMoney(1, v->profit_last_year); DrawString(2, 35, STR_A00F_PROFIT_THIS_YEAR_LAST_YEAR, 0); } @@ -125,7 +125,7 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e) /* Draw Transfer credits text */ { - SetDParam(0, v->cargo_feeder_share); + SetDParamMoney(0, v->cargo_feeder_share); DrawString(60, 101, STR_FEEDER_CARGO_VALUE, 0); } @@ -139,7 +139,7 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e) if (IsNormalAircraft(v)) { SetDParam(0, GetCustomEngineName(v->engine_type)); SetDParam(1, v->build_year); - SetDParam(2, v->value); + SetDParamMoney(2, v->value); DrawString(60, y, STR_A011_BUILT_VALUE, 0); y += 10; |