diff --git a/src/graphics.c b/src/graphics.c index fbbe1b4b4..e91ad86fa 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -3798,17 +3798,20 @@ void render_fire(pixel *vid) for (y=-CELL+1; y<2*CELL; y++) for (x=-CELL+1; 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; + b *= 8; for (y=-1; y<2; y++) for (x=-1; x<2; x++) - if (i+x>=0 && j+y>=0 && i+x=0 && j+y>=0 && i+x4 ? r-4 : 0; fire_g[j][i] = g>4 ? g-4 : 0; fire_b[j][i] = b>4 ? b-4 : 0; diff --git a/src/main.c b/src/main.c index ad561b0fe..1d46a5594 100644 --- a/src/main.c +++ b/src/main.c @@ -1126,6 +1126,7 @@ void clear_sim(void) memset(emap, 0, sizeof(emap)); memset(signs, 0, sizeof(signs)); memset(parts, 0, sizeof(particle)*NPART); + pfree = -1; memset(pmap, 0, sizeof(pmap)); memset(pv, 0, sizeof(pv)); memset(vx, 0, sizeof(vx)); @@ -1736,10 +1737,6 @@ int main(int argc, char *argv[]) menu_count(); parts = calloc(sizeof(particle), NPART); cb_parts = calloc(sizeof(particle), NPART); - for (i=0; i