Fix CRAY bug that deletes particle 0
This commit is contained in:
parent
9ef7a4c1a5
commit
010f7790eb
@ -105,7 +105,7 @@ int Element_CRAY::update(UPDATE_FUNC_ARGS)
|
|||||||
colored = wavelengthToDecoColour(parts[r>>8].ctype);
|
colored = wavelengthToDecoColour(parts[r>>8].ctype);
|
||||||
} else if ((r&0xFF) == PT_CRAY || nostop) {
|
} else if ((r&0xFF) == PT_CRAY || nostop) {
|
||||||
docontinue = 1;
|
docontinue = 1;
|
||||||
} else if(destroy && ((r&0xFF) != PT_DMND)) {
|
} else if(destroy && r && ((r&0xFF) != PT_DMND)) {
|
||||||
sim->kill_part(r>>8);
|
sim->kill_part(r>>8);
|
||||||
if(!--partsRemaining)
|
if(!--partsRemaining)
|
||||||
docontinue = 0;
|
docontinue = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user