make sim local; start circuit compiler
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user