From 9c0944aa09b1d36a60d81c41088a906064086bfb Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 21 Jun 2007 17:25:17 +0000 Subject: (svn r10258) -Codechange: as we are now using int64 all over the place, it's better to use int64 variables in the string generating too instead of packing them into two int32s. -Fix: some displays of money were wrong. --- src/misc_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/misc_cmd.cpp') diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp index ac546aa08..5ad8ffc24 100644 --- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -129,7 +129,7 @@ CommandCost CmdIncreaseLoan(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) Player *p = GetPlayer(_current_player); if (p->current_loan >= _economy.max_loan) { - SetDParamMoney(0, _economy.max_loan); + SetDParam(0, _economy.max_loan); return_cmd_error(STR_702B_MAXIMUM_PERMITTED_LOAN); } @@ -182,7 +182,7 @@ CommandCost CmdDecreaseLoan(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) } if (p->player_money < loan) { - SetDParamMoney(0, loan); + SetDParam(0, loan); return_cmd_error(STR_702E_REQUIRED); } -- cgit v1.2.3-54-g00ecf