diff options
author | rubidium <rubidium@openttd.org> | 2007-06-21 14:54:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-21 14:54:51 +0000 |
commit | eb1472a82d8007a1deddc25ae81f872e7a91abe5 (patch) | |
tree | ffd3d611e2ebf0a91d072c95d635063bf018b1fd /src/ship_gui.cpp | |
parent | f806b46cc967202db3d2fbf3384d0f037c13ed8a (diff) | |
download | openttd-eb1472a82d8007a1deddc25ae81f872e7a91abe5.tar.xz |
(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to place money in some string.
Diffstat (limited to 'src/ship_gui.cpp')
-rw-r--r-- | src/ship_gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ship_gui.cpp b/src/ship_gui.cpp index 4cca7e17d..670edc0ed 100644 --- a/src/ship_gui.cpp +++ b/src/ship_gui.cpp @@ -50,7 +50,7 @@ static void ShipDetailsWndProc(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, ShipVehInfo(v->engine_type)->running_cost * _price.ship_running >> 8); + SetDParamMoney(3, ShipVehInfo(v->engine_type)->running_cost * _price.ship_running >> 8); DrawString(2, 15, STR_9812_AGE_RUNNING_COST_YR, 0); } @@ -62,8 +62,8 @@ static void ShipDetailsWndProc(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_9814_PROFIT_THIS_YEAR_LAST_YEAR, 0); } @@ -85,7 +85,7 @@ static void ShipDetailsWndProc(Window *w, WindowEvent *e) SetDParam(1, v->build_year); SetDParam(0, GetCustomEngineName(v->engine_type)); - SetDParam(2, v->value); + SetDParamMoney(2, v->value); DrawString(74, 57, STR_9816_BUILT_VALUE, 0); SetDParam(0, v->cargo_type); @@ -102,7 +102,7 @@ static void ShipDetailsWndProc(Window *w, WindowEvent *e) DrawString(74, 78, str, 0); /* Draw Transfer credits text */ - SetDParam(0, v->cargo_feeder_share); + SetDParamMoney(0, v->cargo_feeder_share); DrawString(74, 89, STR_FEEDER_CARGO_VALUE, 0); } break; |