|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/* $Id: bomb.c,v 1.43 2003/08/30 11:45:55 stpohle Exp $ */
|
|
|
|
|
/* $Id: bomb.c,v 1.44 2003/09/04 20:18:21 stpohle Exp $ */
|
|
|
|
|
/* everything what have to do with the bombs */
|
|
|
|
|
|
|
|
|
|
#include "bomberclone.h"
|
|
|
|
@ -141,6 +141,12 @@ bomb_move (_bomb * bomb)
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
/* stop moving this bomb */
|
|
|
|
|
keepdir = 0;
|
|
|
|
|
bomb->mode = BM_normal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* if a network game is running send bomb data with the
|
|
|
|
|
current information */
|
|
|
|
@ -157,12 +163,6 @@ bomb_move (_bomb * bomb)
|
|
|
|
|
net_game_send_bomb (bman.p_nr, b);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
/* stop moving this bomb */
|
|
|
|
|
keepdir = 0;
|
|
|
|
|
bomb->mode = BM_normal;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
dist += step;
|
|
|
|
|
} while (dist < bomb->speed && (bomb->mode == BM_liquid || bomb->mode == BM_moving) && keepdir);
|
|
|
|
|