Fixed conditions so positional data are not sent before the level is loaded.

This commit is contained in:
zico 2015-02-22 18:04:37 +01:00
parent 31d1ec7be4
commit 390d1746a5

View file

@ -4890,6 +4890,8 @@ void net_udp_send_pdata()
return;
if (Players[Player_num].connected != CONNECT_PLAYING)
return;
if ( !( Network_status == NETSTAT_PLAYING || Network_status == NETSTAT_ENDLEVEL ) )
return;
memset(&buf, 0, sizeof(UDP_frame_info));
@ -4931,7 +4933,7 @@ void net_udp_process_pdata(const uint8_t *data, uint_fast32_t data_len, const _s
UDP_frame_info pd;
int len = 0;
if ( !( Game_mode & GM_NETWORK && ( Network_status == NETSTAT_PLAYING || Network_status == NETSTAT_ENDLEVEL || Network_status==NETSTAT_WAITING ) ) )
if ( !( Game_mode & GM_NETWORK && ( Network_status == NETSTAT_PLAYING || Network_status == NETSTAT_ENDLEVEL ) ) )
return;
len++;