little cleanup

origin
stpohle 19 years ago
parent 06d3e6dafe
commit 751164628d

@ -1,4 +1,4 @@
/* $Id: bomb.c,v 1.64 2005/07/06 13:11:55 stpohle Exp $ */ /* $Id: bomb.c,v 1.65 2006/12/15 18:51:01 stpohle Exp $ */
/* everything what have to do with the bombs */ /* everything what have to do with the bombs */
#include "bomberclone.h" #include "bomberclone.h"
@ -350,10 +350,9 @@ void explosion_restore (_bomb *bomb) {
if (map.field[_x][_y].ex[d].count > 0) if (map.field[_x][_y].ex[d].count > 0)
map.field[_x][_y].ex[d].count--; map.field[_x][_y].ex[d].count--;
map.field[_x][_y].ex[d].frame = 0.0f; // reset the framenumber map.field[_x][_y].ex[d].frame = 0.0f; // reset the framenumber
if (d==3) { if (d==3)
stonelist_add (_x, _y); stonelist_add (_x, _y);
// printf ("restore: %d,%d\n", _x, _y);
}
/* with every field where was an fire on it decrease the ex[].count value /* with every field where was an fire on it decrease the ex[].count value
* and force an drawing of this field */ * and force an drawing of this field */
@ -365,7 +364,6 @@ void explosion_restore (_bomb *bomb) {
map.field[_x][_y].ex[d].count--; map.field[_x][_y].ex[d].count--;
map.field[_x][_y].ex[d].frame = 0.0f; // reset the framenumber map.field[_x][_y].ex[d].frame = 0.0f; // reset the framenumber
stonelist_add (_x, _y); stonelist_add (_x, _y);
// printf ("restore: %d,%d c=%d\n", _x, _y, map.field[_x][_y].ex[d].count);
} }
/* delete the stone completly if there was any in the way /* delete the stone completly if there was any in the way
@ -381,9 +379,7 @@ void explosion_restore (_bomb *bomb) {
} }
else else
map.field[_x][_y].type = FT_nothing; map.field[_x][_y].type = FT_nothing;
// d_printf ("field_explode (%d,%d) ex_nr = %d\n", _x, _y, map.field[_x][_y].ex_nr);
// printf ("380: d = %d, (%d,%d)\n", d, _x, _y);
stonelist_add (_x, _y); stonelist_add (_x, _y);
if (GT_MP_PTPM) /* send only if we are the master */ if (GT_MP_PTPM) /* send only if we are the master */

Loading…
Cancel
Save