|
|
|
@ -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,11 +131,11 @@ 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;
|
|
|
|
|