removed visual wires; made turning fx back on send all pending fx updates

This commit is contained in:
Redo 2020-04-24 01:13:03 -05:00
parent 30c48226cb
commit cc0a770c81
2 changed files with 9 additions and 15 deletions

View File

@ -314,7 +314,9 @@ while 1 do
end
if time-lastfxtime >= OPT_FX_TIME then
sim:sendfxupdate()
if OPT_FX_UPDATES then
sim:sendfxupdate()
end
sim:sendcallbacks()
lastfxtime = time
end

View File

@ -304,16 +304,8 @@ function Simulation:sendfxupdate()
local data = bool_to_int[group.state]
if OPT_FX_UPDATES then
for i, wire in pairs(group.wires) do
data = data .. "\t" .. wire.objref
end
else
for i, wire in pairs(group.wires) do
if wire.isvisual then
data = data .. "\t" .. wire.objref
end
end
for i, wire in pairs(group.wires) do
data = data .. "\t" .. wire.objref
end
client:send("WU\t" .. data .. "\n")