|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: bomb.c,v 1.44 2003/09/04 20:18:21 stpohle Exp $ */
|
|
|
|
/* $Id: bomb.c,v 1.45 2003/09/04 21:40:27 stpohle Exp $ */
|
|
|
|
/* everything what have to do with the bombs */
|
|
|
|
/* everything what have to do with the bombs */
|
|
|
|
|
|
|
|
|
|
|
|
#include "bomberclone.h"
|
|
|
|
#include "bomberclone.h"
|
|
|
@ -139,8 +139,8 @@ bomb_move (_bomb * bomb)
|
|
|
|
keepdir = 0;
|
|
|
|
keepdir = 0;
|
|
|
|
bomb->dest.x = -bomb->dest.x;
|
|
|
|
bomb->dest.x = -bomb->dest.x;
|
|
|
|
bomb->dest.y = -bomb->dest.y;
|
|
|
|
bomb->dest.y = -bomb->dest.y;
|
|
|
|
map.bfield[b.x][b.y] = 0;
|
|
|
|
|
|
|
|
map.bfield[b.x+bomb->dest.x][b.y+bomb->dest.y] = 1;
|
|
|
|
map.bfield[b.x+bomb->dest.x][b.y+bomb->dest.y] = 1;
|
|
|
|
|
|
|
|
map.bfield[b.x][b.y] = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
/* stop moving this bomb */
|
|
|
|
/* stop moving this bomb */
|
|
|
|