File diff r4548:6a33e364fba5 → r4549:76b9213799ac
economy.c
Show inline comments
 
@@ -243,14 +243,14 @@ int UpdateCompanyRatingAndValue(Player *
 
void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player)
 
{
 
	PlayerID old = _current_player;
 
	_current_player = old_player;
 

	
 
	/* Temporarily increase the player's money, to be sure that
 
	* removing his/her property doesn't fail because of lack of money.
 
	* Not too drastically though, because it could overflow */
 
	 * removing his/her property doesn't fail because of lack of money.
 
	 * Not too drastically though, because it could overflow */
 
	if (new_player == OWNER_SPECTATOR) {
 
		GetPlayer(old_player)->money64 = MAX_UVALUE(uint64) >>2; // jackpot ;p
 
		UpdatePlayerMoney32(GetPlayer(old_player));
 
	}
 

	
 
	if (new_player == OWNER_SPECTATOR) {