diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a6f904e4c..e8001e80e 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,9 @@ D1X-Rebirth Changelog +20120515 +-------- +main/net_udp.c: Do not send endlevel packets to disconnected (but still saved) clients + 20120514 -------- 2d/disc.c, SConstruct, editor/medmisc.c, include/gr.h, include/internal.h, main/menu.c, main/net_udp.c, main/playsave.c, main/state.c, misc/hmp.c, misc/physfsx.c: Fixed some non-critical compiler warnings; Now compiling with -std=c99 -pedantic and fixed warnings (except for editor build) caused by this diff --git a/main/net_udp.c b/main/net_udp.c index 696c6ee0e..09a5dce0e 100644 --- a/main/net_udp.c +++ b/main/net_udp.c @@ -1990,7 +1990,8 @@ void net_udp_send_endlevel_packet(void) } for (i = 1; i < MAX_PLAYERS; i++) - dxx_sendto (UDP_Socket[0], buf, len, 0, (struct sockaddr *)&Netgame.players[i].protocol.udp.addr, sizeof(struct _sockaddr)); + if (Players[i].connected != CONNECT_DISCONNECTED) + dxx_sendto (UDP_Socket[0], buf, len, 0, (struct sockaddr *)&Netgame.players[i].protocol.udp.addr, sizeof(struct _sockaddr)); } else {