Bomb will now explode on full fields if they are pushed.

origin
stpohle 22 years ago
parent eaca81b97a
commit 237f1e5236

@ -1,4 +1,4 @@
/* $Id: bomb.c,v 1.39 2003/08/10 15:10:19 stpohle Exp $ */
/* $Id: bomb.c,v 1.40 2003/08/25 15:07:25 stpohle Exp $ */
/* everything what have to do with the bombs */
#include "bomberclone.h"
@ -112,6 +112,7 @@ bomb_move (_bomb * bomb)
bomb->moves = 0;
return;
}
// calculate movement
if (abs(dx)>bomb->moves || abs(dy)>bomb->moves) {
vec=sqrt(dx*dx+dy*dy);
@ -176,7 +177,7 @@ bomb_loop ()
}
draw_bomb (bomb);
}
if (bomb->moves > 0) bomb_move(bomb);
if (bomb->moves > 0 && bomb->state != BS_exploding) bomb_move(bomb);
b++; // Count ticking Bombs for Return value
break;
case BS_exploding:

Loading…
Cancel
Save