summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/graphics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 2ca21cc..b988213 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -3393,7 +3393,7 @@ void draw_parts(pixel *vid)
int rx, ry;
for (rx=-1; rx<2; rx++)
for (ry=-1; ry<2; ry++)
- if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))
+ if (x+rx>=0 && y+ry>=0 && x+rx<XRES/CELL && y+ry<YRES/CELL && (rx || ry))
{
cr = R*(a-0.3)/6;
cg = G*(a-0.3)/6;