File diff r15104:1752997daf93 → r15105:18f362fd63e2
src/newgrf_industries.cpp
Show inline comments
 
@@ -459,9 +459,10 @@ uint32 IndustryLocationGetVariable(const
 
 * @param type Type of industry to build.
 
 * @param layout Layout number.
 
 * @param seed Seed for the random generator.
 
 * @param initial_random_bits The random bits the industry is going to have after construction.
 
 * @return Succeeded or failed command.
 
 */
 
CommandCost CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint layout, uint32 seed)
 
CommandCost CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint layout, uint32 seed, uint16 initial_random_bits)
 
{
 
	const IndustrySpec *indspec = GetIndustrySpec(type);
 

	
 
@@ -475,6 +476,7 @@ CommandCost CheckIfCallBackAllowsCreatio
 
	ind.type = type;
 
	ind.selected_layout = layout;
 
	ind.town = ClosestTownFromTile(tile, UINT_MAX);
 
	ind.random = initial_random_bits;
 

	
 
	NewIndustryResolver(&object, tile, &ind, type);
 
	object.GetVariable = IndustryLocationGetVariable;