From a974a428893fcb478cd3f2770f0125b046c5108e Mon Sep 17 00:00:00 2001 From: stpohle Date: Thu, 22 Feb 2007 21:36:27 +0000 Subject: [PATCH] pushed bombs are not working right.... --- src/bomb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bomb.c b/src/bomb.c index fb1d7e3..bd9af33 100644 --- a/src/bomb.c +++ b/src/bomb.c @@ -1,4 +1,4 @@ -/* $Id: bomb.c,v 1.68 2007/02/22 21:32:59 stpohle Exp $ */ +/* $Id: bomb.c,v 1.69 2007/02/22 21:36:27 stpohle Exp $ */ /* everything what have to do with the bombs */ #include "bomberclone.h" @@ -131,15 +131,15 @@ void bomb_move (_bomb * bomb) { step = (timefactor * bomb->fdata); /* move the bomb to the new position */ - if (bomb->dest.x < 0.5f) + if (bomb->dest.x < -0.5f) bomb->pos.x -= step; else if (bomb->dest.x > 0.5f) bomb->pos.x += step; - else if (bomb->dest.y < 0.5f) + else if (bomb->dest.y < -0.5f) bomb->pos.y -= step; else if (bomb->dest.y > 0.5f) bomb->pos.y += step; - // printf ("%2.3f,%2.3f\n", bomb->dest.x, bomb->dest.y); + //printf ("%2.3f,%2.3f\n", bomb->dest.x, bomb->dest.y); /* if we are on a complete field, check if we can move to the next one */