mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-08 04:08:07 -06:00
fixed bug
This commit is contained in:
@@ -246,6 +246,8 @@ function poll_depot(map_data, depot)
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
depot.network_flag = 0
|
||||
end
|
||||
end
|
||||
|
||||
@@ -363,7 +365,7 @@ local function tick_dispatch(map_data, mod_settings)
|
||||
|
||||
local r_stations = tick_data.r_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
|
||||
local size = #all_names
|
||||
if size == 0 then
|
||||
|
||||
@@ -222,7 +222,7 @@ function register_gui_actions()
|
||||
|
||||
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)
|
||||
|
||||
local stop = global.to_stop[comb.unit_number]
|
||||
|
||||
Reference in New Issue
Block a user