diff options
author | rubidium <rubidium@openttd.org> | 2007-06-21 17:25:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-21 17:25:17 +0000 |
commit | d0fa4eb9de1a3ee1ebaff4d71890a2fee5e4e32d (patch) | |
tree | 9b6fd14e50d7ab0c8fb901cfad2e00092a6b0470 /src/players.cpp | |
parent | a482793a32692197572e09b07df35a2b28cd6b9b (diff) | |
download | openttd-d0fa4eb9de1a3ee1ebaff4d71890a2fee5e4e32d.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/players.cpp')
-rw-r--r-- | src/players.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/players.cpp b/src/players.cpp index 9a4f61ce1..56c117c94 100644 --- a/src/players.cpp +++ b/src/players.cpp @@ -178,7 +178,7 @@ bool CheckPlayerHasMoney(CommandCost cost) if (cost.GetCost() > 0) { PlayerID pid = _current_player; if (IsValidPlayer(pid) && cost.GetCost() > GetPlayer(pid)->player_money) { - SetDParamMoney(0, cost.GetCost()); + SetDParam(0, cost.GetCost()); _error_message = STR_0003_NOT_ENOUGH_CASH_REQUIRES; return false; } |