make sim local; start circuit compiler

This commit is contained in:
Redo0
2021-05-25 05:26:06 -05:00
parent 569e79ab96
commit 0963ef8ca8
4 changed files with 51 additions and 9 deletions

View File

@@ -125,22 +125,22 @@ function Simulation.removewire(self, objref)
for x = bounds[1]+1, bounds[4]-1, 2 do
for z = bounds[3]+1, bounds[6]-1, 2 do
sim[x][bounds[2]][z][wire] = nil
sim[x][bounds[5]][z][wire] = nil
self[x][bounds[2]][z][wire] = nil
self[x][bounds[5]][z][wire] = nil
end
end
for y = bounds[2]+1, bounds[5]-1, 2 do
for z = bounds[3]+1, bounds[6]-1, 2 do
sim[bounds[1]][y][z][wire] = nil
sim[bounds[4]][y][z][wire] = nil
self[bounds[1]][y][z][wire] = nil
self[bounds[4]][y][z][wire] = nil
end
end
for x = bounds[1]+1, bounds[4]-1, 2 do
for y = bounds[2]+1, bounds[5]-1, 2 do
sim[x][y][bounds[3]][wire] = nil
sim[x][y][bounds[6]][wire] = nil
self[x][y][bounds[3]][wire] = nil
self[x][y][bounds[6]][wire] = nil
end
end