|
|
|
@ -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,27 +141,27 @@ 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;
|
|
|
|
|
|
|
|
|
|
/* if a network game is running send bomb data with the
|
|
|
|
|
current information */
|
|
|
|
|
if (GT_MP_PTP) {
|
|
|
|
|
int b = -1, i = 0;
|
|
|
|
|
|
|
|
|
|
do {
|
|
|
|
|
if (&bman.players[bman.p_nr].bombs[i] == bomb)
|
|
|
|
|
b = i;
|
|
|
|
|
i++;
|
|
|
|
|
} while (b == -1 && i < MAX_BOMBS);
|
|
|
|
|
|
|
|
|
|
if (b != -1)
|
|
|
|
|
net_game_send_bomb (bman.p_nr, b);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
/* stop moving this bomb */
|
|
|
|
|
keepdir = 0;
|
|
|
|
|
bomb->mode = BM_normal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* if a network game is running send bomb data with the
|
|
|
|
|
current information */
|
|
|
|
|
if (GT_MP_PTP) {
|
|
|
|
|
int b = -1, i = 0;
|
|
|
|
|
|
|
|
|
|
do {
|
|
|
|
|
if (&bman.players[bman.p_nr].bombs[i] == bomb)
|
|
|
|
|
b = i;
|
|
|
|
|
i++;
|
|
|
|
|
} while (b == -1 && i < MAX_BOMBS);
|
|
|
|
|
|
|
|
|
|
if (b != -1)
|
|
|
|
|
net_game_send_bomb (bman.p_nr, b);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
dist += step;
|
|
|
|
|