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);
|
||||
} else if ((r&0xFF) == PT_CRAY || nostop) {
|
||||
docontinue = 1;
|
||||
} else if(destroy && ((r&0xFF) != PT_DMND)) {
|
||||
} else if(destroy && r && ((r&0xFF) != PT_DMND)) {
|
||||
sim->kill_part(r>>8);
|
||||
if(!--partsRemaining)
|
||||
docontinue = 0;
|
||||
@ -147,4 +147,4 @@ unsigned int Element_CRAY::wavelengthToDecoColour(int wavelength)
|
||||
}
|
||||
|
||||
|
||||
Element_CRAY::~Element_CRAY() {}
|
||||
Element_CRAY::~Element_CRAY() {}
|
||||
|
Loading…
Reference in New Issue
Block a user