src/industry_cmd.cpp
changeset 7860 5cdd0d914013
parent 7853 4bdbe434e076
child 7862 1d710dd7e197
equal deleted inserted replaced
7859:5595fe36e31b 7860:5cdd0d914013
   699 static void TileLoop_Industry(TileIndex tile)
   699 static void TileLoop_Industry(TileIndex tile)
   700 {
   700 {
   701 	IndustryGfx newgfx;
   701 	IndustryGfx newgfx;
   702 	IndustryGfx gfx;
   702 	IndustryGfx gfx;
   703 
   703 
       
   704 	TriggerIndustryTile(tile, INDTILE_TRIGGER_TILE_LOOP);
       
   705 
   704 	if (!IsIndustryCompleted(tile)) {
   706 	if (!IsIndustryCompleted(tile)) {
   705 		MakeIndustryTileBigger(tile);
   707 		MakeIndustryTileBigger(tile);
   706 		return;
   708 		return;
   707 	}
   709 	}
   708 
   710 
  1040 	}
  1042 	}
  1041 
  1043 
  1042 	if (_game_mode == GM_EDITOR) return;
  1044 	if (_game_mode == GM_EDITOR) return;
  1043 
  1045 
  1044 	FOR_ALL_INDUSTRIES(i) {
  1046 	FOR_ALL_INDUSTRIES(i) {
       
  1047 		TriggerIndustry(i, INDUSTRY_TRIGGER_INDUSTRY_TICK);
  1045 		StartStopIndustryTileAnimation(i, IAT_INDUSTRY_TICK);
  1048 		StartStopIndustryTileAnimation(i, IAT_INDUSTRY_TICK);
  1046 		ProduceIndustryGoods(i);
  1049 		ProduceIndustryGoods(i);
  1047 	}
  1050 	}
  1048 }
  1051 }
  1049 
  1052 
  2135 	SLE_CONDVAR(Industry, last_cargo_accepted_at,     SLE_INT32,                 70, SL_MAX_VERSION),
  2138 	SLE_CONDVAR(Industry, last_cargo_accepted_at,     SLE_INT32,                 70, SL_MAX_VERSION),
  2136 	SLE_CONDVAR(Industry, selected_layout,            SLE_UINT8,                 73, SL_MAX_VERSION),
  2139 	SLE_CONDVAR(Industry, selected_layout,            SLE_UINT8,                 73, SL_MAX_VERSION),
  2137 
  2140 
  2138 	SLE_CONDARRX(cpp_offsetof(Industry, psa) + cpp_offsetof(Industry::PersistentStorage, storage), SLE_UINT32, 16, 76, SL_MAX_VERSION),
  2141 	SLE_CONDARRX(cpp_offsetof(Industry, psa) + cpp_offsetof(Industry::PersistentStorage, storage), SLE_UINT32, 16, 76, SL_MAX_VERSION),
  2139 
  2142 
       
  2143 	SLE_CONDVAR(Industry, random_triggers,            SLE_UINT8,                 82, SL_MAX_VERSION),
       
  2144 	SLE_CONDVAR(Industry, random,                     SLE_UINT16,                82, SL_MAX_VERSION),
       
  2145 
  2140 	/* reserve extra space in savegame here. (currently 32 bytes) */
  2146 	/* reserve extra space in savegame here. (currently 32 bytes) */
  2141 	SLE_CONDNULL(32, 2, SL_MAX_VERSION),
  2147 	SLE_CONDNULL(32, 2, SL_MAX_VERSION),
  2142 
  2148 
  2143 	SLE_END()
  2149 	SLE_END()
  2144 };
  2150 };