1
0
Fork 0

(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.
release/0.5
truelight 2006-08-27 21:20:29 +00:00
parent 5361e30815
commit 8056a793c0
1 changed files with 1 additions and 0 deletions

View File

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