removed visual wires; made turning fx back on send all pending fx updates
This commit is contained in:
		@@ -314,7 +314,9 @@ while 1 do
 | 
				
			|||||||
	end
 | 
						end
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	if time-lastfxtime >= OPT_FX_TIME then
 | 
						if time-lastfxtime >= OPT_FX_TIME then
 | 
				
			||||||
 | 
							if OPT_FX_UPDATES then
 | 
				
			||||||
			sim:sendfxupdate()
 | 
								sim:sendfxupdate()
 | 
				
			||||||
 | 
							end
 | 
				
			||||||
		sim:sendcallbacks()
 | 
							sim:sendcallbacks()
 | 
				
			||||||
		lastfxtime = time
 | 
							lastfxtime = time
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -304,17 +304,9 @@ function Simulation:sendfxupdate()
 | 
				
			|||||||
			
 | 
								
 | 
				
			||||||
			local data = bool_to_int[group.state]
 | 
								local data = bool_to_int[group.state]
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
			if OPT_FX_UPDATES then
 | 
					 | 
				
			||||||
			for i, wire in pairs(group.wires) do
 | 
								for i, wire in pairs(group.wires) do
 | 
				
			||||||
				data = data .. "\t" .. wire.objref
 | 
									data = data .. "\t" .. wire.objref
 | 
				
			||||||
			end
 | 
								end
 | 
				
			||||||
			else
 | 
					 | 
				
			||||||
				for i, wire in pairs(group.wires) do
 | 
					 | 
				
			||||||
					if wire.isvisual then
 | 
					 | 
				
			||||||
						data = data .. "\t" .. wire.objref
 | 
					 | 
				
			||||||
					end
 | 
					 | 
				
			||||||
				end
 | 
					 | 
				
			||||||
			end
 | 
					 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
			client:send("WU\t" .. data .. "\n")
 | 
								client:send("WU\t" .. data .. "\n")
 | 
				
			||||||
		end
 | 
							end
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user