Fix LIGH overwriting fire_alpha

This commit is contained in:
jacksonmj 2011-10-22 19:27:32 +08:00 committed by Simon Robertshaw
parent b84371357a
commit 05eb16e14c

View File

@ -3393,7 +3393,7 @@ void draw_parts(pixel *vid)
int rx, ry; int rx, ry;
for (rx=-1; rx<2; rx++) for (rx=-1; rx<2; rx++)
for (ry=-1; ry<2; ry++) 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; cr = R*(a-0.3)/6;
cg = G*(a-0.3)/6; cg = G*(a-0.3)/6;