summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-27 21:20:29 +0000
committertruelight <truelight@openttd.org>2006-08-27 21:20:29 +0000
commit61659b67d5344eb9cf315f72774b7cc015602770 (patch)
treec7b66b4b1179d00e789b773dcd47e22f730c56f8
parent6faa65b57690dd02efeaa2e154e7d70059d25491 (diff)
downloadopenttd-61659b67d5344eb9cf315f72774b7cc015602770.tar.xz
(svn r6178) -Fix r5886: only setting ->money64 isn't enough, as some routines still use ->player_money.
Because of this, when a player went bankrupt, still not all stuff was removed.
-rw-r--r--economy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/economy.c b/economy.c
index 1abdda6d7..64c947a28 100644
--- a/economy.c
+++ b/economy.c
@@ -249,6 +249,7 @@ void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player)
* removing his/her property doesn't fail because of lack of money */
if (new_player == OWNER_SPECTATOR) {
GetPlayer(old_player)->money64 = ((uint64)-1)>>1; // jackpot ;p
+ UpdatePlayerMoney32(GetPlayer(old_player));
}
if (new_player == OWNER_SPECTATOR) {