File diff r7859:98c8367217c1 → r7860:c73688ce46ca
src/industry_cmd.cpp
Show inline comments
 
@@ -698,12 +698,14 @@ static void TileLoopIndustry_BubbleGener
 

	
 
static void TileLoop_Industry(TileIndex tile)
 
{
 
	IndustryGfx newgfx;
 
	IndustryGfx gfx;
 

	
 
	TriggerIndustryTile(tile, INDTILE_TRIGGER_TILE_LOOP);
 

	
 
	if (!IsIndustryCompleted(tile)) {
 
		MakeIndustryTileBigger(tile);
 
		return;
 
	}
 

	
 
	if (_game_mode == GM_EDITOR) return;
 
@@ -1039,12 +1041,13 @@ void OnTick_Industry()
 
		}
 
	}
 

	
 
	if (_game_mode == GM_EDITOR) return;
 

	
 
	FOR_ALL_INDUSTRIES(i) {
 
		TriggerIndustry(i, INDUSTRY_TRIGGER_INDUSTRY_TICK);
 
		StartStopIndustryTileAnimation(i, IAT_INDUSTRY_TICK);
 
		ProduceIndustryGoods(i);
 
	}
 
}
 

	
 
static bool CheckNewIndustry_NULL(TileIndex tile)
 
@@ -2134,12 +2137,15 @@ static const SaveLoad _industry_desc[] =
 
	SLE_CONDVAR(Industry, construction_type,          SLE_UINT8,                 70, SL_MAX_VERSION),
 
	SLE_CONDVAR(Industry, last_cargo_accepted_at,     SLE_INT32,                 70, SL_MAX_VERSION),
 
	SLE_CONDVAR(Industry, selected_layout,            SLE_UINT8,                 73, SL_MAX_VERSION),
 

	
 
	SLE_CONDARRX(cpp_offsetof(Industry, psa) + cpp_offsetof(Industry::PersistentStorage, storage), SLE_UINT32, 16, 76, SL_MAX_VERSION),
 

	
 
	SLE_CONDVAR(Industry, random_triggers,            SLE_UINT8,                 82, SL_MAX_VERSION),
 
	SLE_CONDVAR(Industry, random,                     SLE_UINT16,                82, SL_MAX_VERSION),
 

	
 
	/* reserve extra space in savegame here. (currently 32 bytes) */
 
	SLE_CONDNULL(32, 2, SL_MAX_VERSION),
 

	
 
	SLE_END()
 
};