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
commit8056a793c0a42ff9aa2f7dba9fa7ee8c22b3671f (patch)
treec7b66b4b1179d00e789b773dcd47e22f730c56f8
parent5361e30815dda97a06266ba95dbfbc4efe8c38ac (diff)
downloadopenttd-8056a793c0a42ff9aa2f7dba9fa7ee8c22b3671f.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) {