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 }; |