fixed: bomb dropping will check now correctly if there is already a bomb at the new field

origin
stpohle 23 years ago
parent 3bcd31c102
commit 98b8fc4c50

@ -383,9 +383,13 @@ player_drop_bomb (int pl_nr)
_y = 0;
}
bomb->pos.x = bomb->pos.x << 8;
bomb->pos.y = bomb->pos.y << 8;
get_bomb_on (bomb->pos.x, bomb->pos.y, bombs);
if (bombs[0].x != -1) // is there already a bomb
return;
d_printf ("Player %d Dropped Bomb %d\n", pl_nr, i);
bomb->r = player->range;
if (player->special.type == SP_trigger) {
@ -397,9 +401,7 @@ player_drop_bomb (int pl_nr)
bomb->to = BOMB_TIMEOUT * TIME_FACTOR; // 5 Secs * 200
}
bomb->ex_nr = -1;
bman.bfield[bomb->pos.x][bomb->pos.y] = 1;
bomb->pos.x = bomb->pos.x << 8;
bomb->pos.y = bomb->pos.y << 8;
bman.bfield[bomb->pos.x >> 8][bomb->pos.y >> 8] = 1;
if (bman.gametype != GT_single) {
net_game_send_bomb (pl_nr, i);
if (GT_MP_PTPS)

Loading…
Cancel
Save