Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lua/entities/gmod_wire_fpga/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,7 @@ function ENT:Run(changedNodes)
if self.Debug then print("\n================================================================================") end

--Extra
if self.ExecutionCount != nil then
self.ExecutionCount = self.ExecutionCount + 1
end
self.ExecutionCount = self.ExecutionCount + 1
local bench = SysTime()
self.CurrentExecution = bench

Expand Down Expand Up @@ -797,12 +795,14 @@ function ENT:Run(changedNodes)

if gate.isInput then
value = {self.InputValues[nodeId]}
loopDetectionNodeId = nil
elseif gate.isConstant then
if gate.outputtypes[1] == "STRING" then
value = { WireLib.ParseEscapes(node.value) }
else
value = {node.value}
end
loopDetectionNodeId = nil
else
if nodeId == loopDetectionNodeId and #nodeQueue == loopDetectionSize then
--infinite loop...
Expand Down
Loading