fixed bug

This commit is contained in:
Monica Moniot
2022-11-11 11:21:23 -05:00
parent a0ac3d4d24
commit e68f6553a9
2 changed files with 4 additions and 2 deletions

View File

@@ -246,6 +246,8 @@ function poll_depot(map_data, depot)
end end
end end
end end
else
depot.network_flag = 0
end end
end end
@@ -363,7 +365,7 @@ local function tick_dispatch(map_data, mod_settings)
local r_stations = tick_data.r_stations local r_stations = tick_data.r_stations
local p_stations = tick_data.p_stations local p_stations = tick_data.p_stations
if not p_stations then if p_stations == nil or #p_stations == 0 or #r_stations == 0 then
while true do while true do
local size = #all_names local size = #all_names
if size == 0 then if size == 0 then

View File

@@ -222,7 +222,7 @@ function register_gui_actions()
local a = comb.get_or_create_control_behavior()--[[@as LuaArithmeticCombinatorControlBehavior]] local a = comb.get_or_create_control_behavior()--[[@as LuaArithmeticCombinatorControlBehavior]]
local allows_all_trains = element.state local allows_all_trains = not element.state
set_comb_allows_all_trains(a, allows_all_trains) set_comb_allows_all_trains(a, allows_all_trains)
local stop = global.to_stop[comb.unit_number] local stop = global.to_stop[comb.unit_number]