summaryrefslogtreecommitdiff
path: root/src/elements/phot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/phot.c')
-rw-r--r--src/elements/phot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/phot.c b/src/elements/phot.c
index 12e7da5..98d421d 100644
--- a/src/elements/phot.c
+++ b/src/elements/phot.c
@@ -14,7 +14,7 @@ int update_PHOT(UPDATE_FUNC_ARGS) {
for (ry=-1; ry<2; ry++)
if (x+rx>=0 && y+ry>=0 && x+rx<XRES && y+ry<YRES && (rx || ry)) {
r = pmap[y+ry][x+rx];
- if ((r>>8)>=NPART || !r)
+ if (!r)
continue;
if ((r&0xFF)==PT_ISOZ && 5>(rand()%2000))
{