Ensure invisible photons get killed

This commit is contained in:
jacksonmj 2011-04-16 00:53:38 +01:00 committed by Simon
parent 96d2587f29
commit 8d8cc909bb

View File

@ -3,6 +3,10 @@
int update_PHOT(UPDATE_FUNC_ARGS) {
int r, rt, rx, ry;
float rr, rrr;
if (!parts[i].ctype) {
kill_part(i);
return 1;
}
if (1>rand()%10) update_PYRO(UPDATE_FUNC_SUBCALL_ARGS);
for (rx=-1; rx<2; rx++)
for (ry=-1; ry<2; ry++)