(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.
pull/155/head
truelight 18 years ago
parent 6faa65b576
commit 61659b67d5

@ -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) {

Loading…
Cancel
Save