Fixed one more copy/paste issue causeing positional updates relayed to possibly disconnected players

This commit is contained in:
zicodxx 2012-05-26 14:09:00 +02:00
parent 98f6ac2204
commit 46f4a9e285
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ D1X-Rebirth Changelog
20120526
--------
main/collide.c: Fit player/player collisions to not take damage from bump while remote player has possibly not aligned to the collision, yet; Added FORCE_DAMAGE_THRESHOLD for minimum force damage to receive from object bumps to not simply take damage from touching objects
main/net_udp.c: Fixed one more copy/paste issue causeing positional updates relayed to possibly disconnected players
20120525
--------

View file

@ -4643,7 +4643,7 @@ void net_udp_process_pdata ( ubyte *data, int data_len, struct _sockaddr sender_
{
for (i = 1; i < MAX_PLAYERS; i++)
{
if (i != pd.Player_num && Players[pd.Player_num].connected != CONNECT_DISCONNECTED) // not to sender or disconnected players - right.
if (i != pd.Player_num && Players[i].connected != CONNECT_DISCONNECTED) // not to sender or disconnected players - right.
dxx_sendto (UDP_Socket[0], data, data_len, 0, (struct sockaddr *)&Netgame.players[i].protocol.udp.addr, sizeof(struct _sockaddr));
}
}