(svn r6178) -Fix r5886: only setting ->money64 isn't enough, as some routines still use ->player_money.
authortruelight
Sun, 27 Aug 2006 21:20:29 +0000
changeset 4423 26a10a270104
parent 4422 f2f5f2c394fa
child 4424 bf0f71cb6e1f
(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.
economy.c
--- a/economy.c	Sun Aug 27 20:30:10 2006 +0000
+++ b/economy.c	Sun Aug 27 21:20:29 2006 +0000
@@ -249,6 +249,7 @@
 	* 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) {