(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 cc00f674d978
parent 4422 7d7018cc6c75
child 4424 5b7aca737cfa
(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) {