changeset 4423:8d8cfaaf4046 draft

(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.
author truelight <truelight@openttd.org>
date Sun, 27 Aug 2006 21:20:29 +0000
parents a68894e6c982
children 28f4f04f2e25
files economy.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/economy.c
+++ b/economy.c
@@ -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) {