|
|
|
@ -178,11 +178,9 @@ player_check_powerup (_player * p)
|
|
|
|
|
case FT_sp_row:
|
|
|
|
|
case FT_sp_push:
|
|
|
|
|
case FT_sp_kick:
|
|
|
|
|
if (p->special==SP_nothing) {
|
|
|
|
|
p->special=ft-FT_sp_trigger+1;
|
|
|
|
|
field_clear(fx,fy);
|
|
|
|
|
bman.updatestatusbar=1;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
@ -385,9 +383,9 @@ get_player_on (short int x, short int y, int pl_nr[])
|
|
|
|
|
|
|
|
|
|
for (i = 0, p = 0; p < MAX_PLAYERS; p++)
|
|
|
|
|
if (PS_IS_alife (bman.players[p].state)) {
|
|
|
|
|
if (bman.players[p].pos.x - 42 > x - 256
|
|
|
|
|
&& bman.players[p].pos.x + 42 < x + 256
|
|
|
|
|
&& bman.players[p].pos.y - 42 > y - 256 && bman.players[p].pos.y + 42 < y + 256) {
|
|
|
|
|
if (bman.players[p].pos.x - EXPLOSION_SAVE_DISTANCE > x - 256
|
|
|
|
|
&& bman.players[p].pos.x + EXPLOSION_SAVE_DISTANCE < x + 256
|
|
|
|
|
&& bman.players[p].pos.y - EXPLOSION_SAVE_DISTANCE > y - 256 && bman.players[p].pos.y + EXPLOSION_SAVE_DISTANCE < y + 256) {
|
|
|
|
|
pl_nr[i] = p;
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
@ -402,6 +400,7 @@ player_died (_player * player, signed char dead_by)
|
|
|
|
|
// player die !
|
|
|
|
|
|
|
|
|
|
d_printf ("player_died (%10s)\n", player->name);
|
|
|
|
|
bman.updatestatusbar = 1; // force an update
|
|
|
|
|
|
|
|
|
|
if (PS_IS_alife (player->state) && dead_by >= 0 && dead_by < MAX_PLAYERS)
|
|
|
|
|
if (bman.p_nr != dead_by)
|
|
|
|
|