summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-10-22 11:27:32 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-23 09:54:29 (GMT)
commit05eb16e14c679f92d766ace0b421e793f73faf69 (patch)
tree11f55c6ec5b4b1fe4a1c2f5f2595e33ec732ebcf /src/graphics.c
parentb84371357a5a9bb4acb78f32342fcf03655da00c (diff)
downloadpowder-05eb16e14c679f92d766ace0b421e793f73faf69.zip
powder-05eb16e14c679f92d766ace0b421e793f73faf69.tar.gz
Fix LIGH overwriting fire_alpha
Diffstat (limited to 'src/graphics.c')
-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;