From 237f1e52361f928e524ef9ffabb7c907e1db0e21 Mon Sep 17 00:00:00 2001 From: stpohle Date: Mon, 25 Aug 2003 15:07:25 +0000 Subject: [PATCH] Bomb will now explode on full fields if they are pushed. --- src/bomb.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bomb.c b/src/bomb.c index 917b201..140328d 100644 --- a/src/bomb.c +++ b/src/bomb.c @@ -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,9 +177,9 @@ bomb_loop () } draw_bomb (bomb); } - if (bomb->moves > 0) bomb_move(bomb); - b++; // Count ticking Bombs for Return value - break; + if (bomb->moves > 0 && bomb->state != BS_exploding) bomb_move(bomb); + b++; // Count ticking Bombs for Return value + break; case BS_exploding: if (bomb->to > 0) { do_explosion (p, i);