File diff r24596:eddf98238034 → r24597:afde5721a3b6
src/object_cmd.cpp
Show inline comments
 
@@ -549,20 +549,20 @@ static void AddAcceptedCargo_Object(Tile
 

	
 
	/* HQ level (depends on company performance) in the range 1..5. */
 
	uint level = GetCompanyHQSize(tile) + 1;
 

	
 
	/* Top town building generates 10, so to make HQ interesting, the top
 
	 * type makes 20. */
 
	acceptance[CT_PASSENGERS] += max(1U, level);
 
	acceptance[CT_PASSENGERS] += std::max(1U, level);
 
	SetBit(*always_accepted, CT_PASSENGERS);
 

	
 
	/* Top town building generates 4, HQ can make up to 8. The
 
	 * proportion passengers:mail is different because such a huge
 
	 * commercial building generates unusually high amount of mail
 
	 * correspondence per physical visitor. */
 
	acceptance[CT_MAIL] += max(1U, level / 2);
 
	acceptance[CT_MAIL] += std::max(1U, level / 2);
 
	SetBit(*always_accepted, CT_MAIL);
 
}
 

	
 
static void AddProducedCargo_Object(TileIndex tile, CargoArray &produced)
 
{
 
	if (!IsObjectType(tile, OBJECT_HQ)) return;