summaryrefslogtreecommitdiff
path: root/src/elements/O2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/O2.c')
-rw-r--r--src/elements/O2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/O2.c b/src/elements/O2.c
index a008766..b71870e 100644
--- a/src/elements/O2.c
+++ b/src/elements/O2.c
@@ -8,7 +8,7 @@ int update_O2(UPDATE_FUNC_ARGS)
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_FIRE)