mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 20:12:50 +02:00
Fix CRAY bug that deletes particle 0
This commit is contained in:
@@ -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;
|
||||||
@@ -147,4 +147,4 @@ unsigned int Element_CRAY::wavelengthToDecoColour(int wavelength)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Element_CRAY::~Element_CRAY() {}
|
Element_CRAY::~Element_CRAY() {}
|
||||||
|
Reference in New Issue
Block a user