Permalink
Browse files

fix fire drawing on the entire image

  • Loading branch information...
1 parent c67741f commit f99ddbaf4b407ebc88b3ea6d7e37493b7c749e00 @osresearch committed Jan 1, 2000
Showing with 2 additions and 3 deletions.
  1. +2 −3 fire.c
View
5 fire.c
@@ -91,7 +91,7 @@ fire_draw(
uint32_t * const frame
)
{
- memset(frame, 0, w*16*sizeof(*frame));
+ memset(frame, 0, w*h*sizeof(*frame));
angle = angle + 0.05;
@@ -123,8 +123,7 @@ fire_draw(
if (((c >> 0) & 0xFF) == 128)
fire[x][y] = 128;
- if (y > 1 && y < 2 + 16)
- frame[counter++] = c;
+ frame[counter++] = c;
}
}
}

0 comments on commit f99ddba

Please sign in to comment.