bombmoving changed

origin
stpohle 22 years ago
parent 2dcfddffd6
commit 2157d740b2

@ -1,4 +1,4 @@
/* $Id: basic.h,v 1.50 2003/08/29 22:04:19 stpohle Exp $ */
/* $Id: basic.h,v 1.51 2003/09/04 20:18:21 stpohle Exp $ */
/* basic types which we need everywhere */
#ifndef _BC_BASIC_H_
@ -25,7 +25,6 @@
#define SPECIAL_TRIGGER_TIME 25
#define SPECIAL_ROW_TIME 30
#define SPECIAL_PUSH_TIME 50
// #define SPECIAL_DESTROY_NUMUSE 5
#define START_BOMBS 1
#define START_RANGE 2

@ -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;

Loading…
Cancel
Save