diff options
author | truelight <truelight@openttd.org> | 2006-08-27 21:20:29 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-27 21:20:29 +0000 |
commit | 61659b67d5344eb9cf315f72774b7cc015602770 (patch) | |
tree | c7b66b4b1179d00e789b773dcd47e22f730c56f8 | |
parent | 6faa65b57690dd02efeaa2e154e7d70059d25491 (diff) | |
download | openttd-61659b67d5344eb9cf315f72774b7cc015602770.tar.xz |
(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.
-rw-r--r-- | economy.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |