|
|
@ -242,7 +242,6 @@ stepmove_player (int pl_nr)
|
|
|
|
d;
|
|
|
|
d;
|
|
|
|
|
|
|
|
|
|
|
|
if (p->m == 1) {
|
|
|
|
if (p->m == 1) {
|
|
|
|
|
|
|
|
|
|
|
|
fpos.x = p->pos.x >> 8;
|
|
|
|
fpos.x = p->pos.x >> 8;
|
|
|
|
fpos.y = p->pos.y >> 8;
|
|
|
|
fpos.y = p->pos.y >> 8;
|
|
|
|
_pos.x = p->pos.x & 255;
|
|
|
|
_pos.x = p->pos.x & 255;
|
|
|
@ -319,6 +318,7 @@ stepmove_player (int pl_nr)
|
|
|
|
_pos.x = p->pos.x & 255;
|
|
|
|
_pos.x = p->pos.x & 255;
|
|
|
|
_pos.y = p->pos.y & 255;
|
|
|
|
_pos.y = p->pos.y & 255;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* check if we can go though a tunnel */
|
|
|
|
if (_pos.x == 0 && _pos.y == 0 && map.field[fpos.x][fpos.y].type == FT_tunnel
|
|
|
|
if (_pos.x == 0 && _pos.y == 0 && map.field[fpos.x][fpos.y].type == FT_tunnel
|
|
|
|
&& p->tunnelto == -1) {
|
|
|
|
&& p->tunnelto == -1) {
|
|
|
|
d_printf ("Tunnel [%d] Player %s is going to (%d,%d)\n",
|
|
|
|
d_printf ("Tunnel [%d] Player %s is going to (%d,%d)\n",
|
|
|
@ -337,6 +337,7 @@ stepmove_player (int pl_nr)
|
|
|
|
p->pos.x = map.tunnel[map.field[fpos.x][fpos.y].special].x << 8;
|
|
|
|
p->pos.x = map.tunnel[map.field[fpos.x][fpos.y].special].x << 8;
|
|
|
|
p->pos.y = map.tunnel[map.field[fpos.x][fpos.y].special].y << 8;
|
|
|
|
p->pos.y = map.tunnel[map.field[fpos.x][fpos.y].special].y << 8;
|
|
|
|
p->tunnelto = GAME_TUNNEL_TO;
|
|
|
|
p->tunnelto = GAME_TUNNEL_TO;
|
|
|
|
|
|
|
|
speed = p->speed;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -380,8 +381,12 @@ move_player (int pl_nr)
|
|
|
|
|
|
|
|
|
|
|
|
oldd = p->d;
|
|
|
|
oldd = p->d;
|
|
|
|
|
|
|
|
|
|
|
|
if (p->tunnelto > 0)
|
|
|
|
if (p->tunnelto > 0) {
|
|
|
|
p->tunnelto--;
|
|
|
|
p->tunnelto--;
|
|
|
|
|
|
|
|
p->m = 0;
|
|
|
|
|
|
|
|
if (p->tunnelto <= 0 && GT_MP_PTP)
|
|
|
|
|
|
|
|
net_game_send_playermove (bman.p_nr, 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
if (p->m) {
|
|
|
|
if (p->m) {
|
|
|
|
player_animation (p);
|
|
|
|
player_animation (p);
|
|
|
|