Ensure invisible photons get killed
This commit is contained in:
parent
96d2587f29
commit
8d8cc909bb
@ -3,6 +3,10 @@
|
|||||||
int update_PHOT(UPDATE_FUNC_ARGS) {
|
int update_PHOT(UPDATE_FUNC_ARGS) {
|
||||||
int r, rt, rx, ry;
|
int r, rt, rx, ry;
|
||||||
float rr, rrr;
|
float rr, rrr;
|
||||||
|
if (!parts[i].ctype) {
|
||||||
|
kill_part(i);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
if (1>rand()%10) update_PYRO(UPDATE_FUNC_SUBCALL_ARGS);
|
if (1>rand()%10) update_PYRO(UPDATE_FUNC_SUBCALL_ARGS);
|
||||||
for (rx=-1; rx<2; rx++)
|
for (rx=-1; rx<2; rx++)
|
||||||
for (ry=-1; ry<2; ry++)
|
for (ry=-1; ry<2; ry++)
|
||||||
|
Loading…
Reference in New Issue
Block a user