mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-02 22:47:26 +02:00
Only check the bits actually used for wavelength in photon ctype
Fixes black photons not being killed after passing through pipe
This commit is contained in:
committed by
Simon Robertshaw
parent
f0730818e4
commit
748a528fe0
@@ -5,7 +5,7 @@ int update_PHOT(UPDATE_FUNC_ARGS) {
|
|||||||
float rr, rrr;
|
float rr, rrr;
|
||||||
parts[i].pavg[0] = x;
|
parts[i].pavg[0] = x;
|
||||||
parts[i].pavg[1] = y;
|
parts[i].pavg[1] = y;
|
||||||
if (!parts[i].ctype) {
|
if (!(parts[i].ctype&0x3FFFFFFF)) {
|
||||||
kill_part(i);
|
kill_part(i);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@@ -2298,7 +2298,7 @@ killed:
|
|||||||
kill_part(i);
|
kill_part(i);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!parts[i].ctype&&t!=PT_NEUT&&t!=PT_ELEC) {
|
if (!(parts[i].ctype&0x3FFFFFFF)&&t!=PT_NEUT&&t!=PT_ELEC) {
|
||||||
kill_part(i);
|
kill_part(i);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user