diff options
author | truelight <truelight@openttd.org> | 2006-08-27 21:20:29 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-27 21:20:29 +0000 |
commit | 8056a793c0a42ff9aa2f7dba9fa7ee8c22b3671f (patch) | |
tree | c7b66b4b1179d00e789b773dcd47e22f730c56f8 | |
parent | 5361e30815dda97a06266ba95dbfbc4efe8c38ac (diff) | |
download | openttd-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |