summaryrefslogtreecommitdiff
path: root/src/misc_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-21 17:25:17 +0000
committerrubidium <rubidium@openttd.org>2007-06-21 17:25:17 +0000
commit9c0944aa09b1d36a60d81c41088a906064086bfb (patch)
tree9b6fd14e50d7ab0c8fb901cfad2e00092a6b0470 /src/misc_cmd.cpp
parentc5225992c168b3546d37f5309b668d9fe5f4af1d (diff)
downloadopenttd-9c0944aa09b1d36a60d81c41088a906064086bfb.tar.xz
(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.
Diffstat (limited to 'src/misc_cmd.cpp')
-rw-r--r--src/misc_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}