From 1a17e35c6fc19ff448186a32dc219beb06749898 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 25 Jun 2011 16:06:17 +0100 Subject: [PATCH] Change checking back to ctype for Aray condition --- src/elements/aray.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/elements/aray.c b/src/elements/aray.c index 94729f456..b1a2e9124 100644 --- a/src/elements/aray.c +++ b/src/elements/aray.c @@ -49,7 +49,8 @@ int update_ARAY(UPDATE_FUNC_ARGS) { if (nyy!=0 || nxx!=0) { create_part(-1, x+nxi+nxx, y+nyi+nyy, PT_SPRK); } - if (!(nostop && (ptypes[r&0xFF].properties&PROP_CONDUCTS))) {//don't need to check r&0xFF>8)>=NPART + //if (!(nostop && (ptypes[r&0xFF].properties&PROP_CONDUCTS))) {//don't need to check r&0xFF>8)>=NPART //Not sure why you changed checking "ctype" to "type" + if (!(nostop && (ptypes[parts[r>>8].ctype].properties&PROP_CONDUCTS))) { docontinue = 0; } else { docontinue = 1;