mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-28 08:00:14 +01:00
(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.
This commit is contained in:
parent
5361e30815
commit
8056a793c0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user