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 | 1b27095c830d0e9fb399cf5340d2cf58db388e21 (patch) | |
tree | ffd3d611e2ebf0a91d072c95d635063bf018b1fd /src/misc_gui.cpp | |
parent | 0d8e82b7d742b54216bf6bc8a1d3b4eafe8124ab (diff) | |
download | openttd-1b27095c830d0e9fb399cf5340d2cf58db388e21.tar.xz |
(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to place money in some string.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 64fba654c..5d887cc17 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -122,7 +122,7 @@ static void Place_LandInfo(TileIndex tile) str = STR_01A4_COST_TO_CLEAR_N_A; if (CmdSucceeded(costclear)) { - SetDParam(0, costclear.GetCost()); + SetDParamMoney(0, costclear.GetCost()); str = STR_01A5_COST_TO_CLEAR; } GetString(_landinfo_data[2], str, lastof(_landinfo_data[2])); @@ -618,7 +618,7 @@ void ShowEstimatedCostOrIncome(Money cost, int x, int y) cost = -cost; msg = STR_0807_ESTIMATED_INCOME; } - SetDParam(0, cost); + SetDParamMoney(0, cost); ShowErrorMessage(INVALID_STRING_ID, msg, x, y); } @@ -632,7 +632,7 @@ void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost) cost = -cost; msg = STR_0803_INCOME; } - SetDParam(0, cost); + SetDParamMoney(0, cost); AddTextEffect(msg, pt.x, pt.y, 0x250); } @@ -640,7 +640,7 @@ void ShowFeederIncomeAnimation(int x, int y, int z, Money cost) { Point pt = RemapCoords(x,y,z); - SetDParam(0, cost); + SetDParamMoney(0, cost); AddTextEffect(STR_FEEDER, pt.x, pt.y, 0x250); } |