JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
oops, was drawing *inactive* bang dots
authorJoshua Grams <josh@qualdan.com>
Thu, 22 Jun 2006 21:53:30 +0000 (21:53 +0000)
committerJoshua Grams <josh@qualdan.com>
Thu, 22 Jun 2006 21:53:30 +0000 (21:53 +0000)
main.c

diff --git a/main.c b/main.c
index 06f46c1..7c046dd 100644 (file)
--- a/main.c
+++ b/main.c
@@ -223,7 +223,7 @@ draw_bang_dots(SDL_Surface *s)
        pixels = (uint16_t *) s->pixels;
 
        for(i=0; i<MAXBANGDOTS; i++) {
-               if(bdot[i].active) continue;
+               if(!bdot[i].active) continue;
 
                pixel = pixels + row_inc*(int)(bdot[i].y) + (int)(bdot[i].x);
                if(bdot[i].c) c = bdot[i].c; else c = heatcolor[(int)(bdot[i].life)*3];