fix CRAY only deleting odd numbered elements

This commit is contained in:
jacob1 2013-02-16 15:11:59 -05:00
parent 5f331d4fce
commit a3454c49be

View File

@ -96,7 +96,7 @@ int Element_CRAY::update(UPDATE_FUNC_ARGS)
colored = wavelengthToDecoColour(parts[r>>8].ctype);
} else if ((r&0xFF)==PT_CRAY || nostop) {
docontinue = 1;
} else if(destroy && (r&0xFF != PT_DMND)) {
} else if(destroy && ((r&0xFF) != PT_DMND)) {
sim->kill_part(r>>8);
if(!--partsRemaining)
docontinue = 0;