summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorJoJoBond <jojobond@hotmail.com>2010-11-05 21:40:02 (GMT)
committer JoJoBond <jojobond@hotmail.com>2010-11-05 21:40:02 (GMT)
commite2d4431b46230d9235001fde8ddcad8056f26594 (patch)
tree596438870c4ccc85ce6f9f9fa6377ac3d677222c /src/graphics.c
parent10de3242d803ce354fa8492cebaef345bcc0c00d (diff)
downloadpowder-e2d4431b46230d9235001fde8ddcad8056f26594.zip
powder-e2d4431b46230d9235001fde8ddcad8056f26594.tar.gz
fixed SWCH bug
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 83b1141..f259a89 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1568,7 +1568,8 @@ void draw_parts(pixel *vid)
blendpixel(vid, nx-1, ny-1, cr, cg, cb, 32);
}
}
- else if(t==PT_SWCH && parts[i].life == 10)
+ //Life can be 11 too, so don't just check for 10
+ else if(t==PT_SWCH && parts[i].life >= 10)
{
x = nx;
y = ny;