Draw pixels for the entire fire_alpha array

Makes fire glow look slightly less blocky
This commit is contained in:
jacksonmj 2012-02-16 21:13:59 +00:00
parent 3042b53e11
commit 9001508623

View File

@ -3170,8 +3170,8 @@ void render_fire(pixel *vid)
g = fire_g[j][i];
b = fire_b[j][i];
if (r || g || b)
for (y=-CELL+1; y<2*CELL; y++)
for (x=-CELL+1; x<2*CELL; x++)
for (y=-CELL; y<2*CELL; y++)
for (x=-CELL; x<2*CELL; x++)
addpixel(vid, i*CELL+x, j*CELL+y, r, g, b, fire_alpha[y+CELL][x+CELL]);
r *= 8;
g *= 8;