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/command.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/command.cpp')
-rw-r--r-- | src/command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.cpp b/src/command.cpp index 3aa93777c..ce138c4f2 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -569,7 +569,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, if (IsLocalPlayer() && _game_mode != GM_EDITOR) { if (res2.GetCost() != 0) ShowCostOrIncomeAnimation(x, y, GetSlopeZ(x, y), res2.GetCost()); if (_additional_cash_required != 0) { - SetDParam(0, _additional_cash_required); + SetDParamMoney(0, _additional_cash_required); ShowErrorMessage(STR_0003_NOT_ENOUGH_CASH_REQUIRES, error_part1, x, y); if (res2.GetCost() == 0) goto callb_err; } |