hhhhhhhhhhhhhhhhhhhhhh
This commit is contained in:
parent
88ef25372d
commit
6b9fc806ab
|
|
@ -105,7 +105,7 @@ function countNeighbors(){
|
||||||
if (!isEmpty(x,y, true)) {
|
if (!isEmpty(x,y, true)) {
|
||||||
var otherPixel = pixelMap[x][y];
|
var otherPixel = pixelMap[x][y];
|
||||||
if (otherPixel.element == "logic_wire"){
|
if (otherPixel.element == "logic_wire"){
|
||||||
if (otherPixel.lstate){
|
if (otherPixel.lstate > 0){
|
||||||
results.charged = results.charged + 1;
|
results.charged = results.charged + 1;
|
||||||
} else {
|
} else {
|
||||||
results.uncharged = results.uncharged + 1;
|
results.uncharged = results.uncharged + 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue