Permalink
Browse files

CRAY wall checking fix

  • Loading branch information...
jacob1 committed Oct 3, 2017
1 parent 77b6f44 commit 17c9340434620d525666699d4a17d7564040e853
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/simulation/elements/CRAY.cpp
@@ -91,7 +91,7 @@ int Element_CRAY::update(UPDATE_FUNC_ARGS)
break;
}
r = pmap[y+nyi+nyy][x+nxi+nxx];
if (!sim->IsWallBlocking(x+nxi+nxx, y+nyi+nyy, parts[i].ctype) && (!sim->pmap[y+nyi+nyy][x+nxi+nxx] || createSpark)) { // create, also set color if it has passed through FILT
if (!sim->IsWallBlocking(x+nxi+nxx, y+nyi+nyy, parts[i].ctype&0xFF) && (!sim->pmap[y+nyi+nyy][x+nxi+nxx] || createSpark)) { // create, also set color if it has passed through FILT
int nr = sim->create_part(-1, x+nxi+nxx, y+nyi+nyy, parts[i].ctype&0xFF, parts[i].ctype>>8);
if (nr!=-1) {
if (colored)

0 comments on commit 17c9340

Please sign in to comment.