File diff r7762:f53dd1eec4cf → r7763:878d494b5f57
src/economy.cpp
Show inline comments
 
@@ -92,13 +92,13 @@ Money CalculateCompanyValue(const Player
 
	}
 

	
 
	/* Add real money value */
 
	value.AddCost(-p->current_loan);
 
	value.AddCost(p->player_money);
 

	
 
	return max(value.GetCost(), 1LL);
 
	return max(value.GetCost(), (Money)1);
 
}
 

	
 
/** if update is set to true, the economy is updated with this score
 
 *  (also the house is updated, should only be true in the on-tick event)
 
 * @param update the economy with calculated score
 
 * @param p player been evaluated