X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=netconn.h;h=cc991276ea9c4c612f387266cf8c0cffdb64321c;hp=2e9d92341c1e6acd8c06122ec59c8db407adfebf;hb=7e1b0dc62d5de63c0de26e17093ecd897a973c20;hpb=a0338ffd578afdaf693aee96bc6f948afb5b1844 diff --git a/netconn.h b/netconn.h index 2e9d9234..cc991276 100755 --- a/netconn.h +++ b/netconn.h @@ -159,7 +159,9 @@ extern int playercolor; typedef struct { // ping time for sorting servers - double ping; + int ping; + // used to calculate ping when update comes in + double querytime; // address for connecting char cname[128]; // description (seen by user) @@ -191,9 +193,17 @@ extern unsigned short ntohs (unsigned short netshort); // //============================================================================ -extern cvar_t sv_maxplayers; +extern double masterquerytime; +extern int masterquerycount; +extern int masterreplycount; +extern int serverquerycount; +extern int serverreplycount; + extern sizebuf_t net_message; +extern cvar_t cl_fakelocalping_min; +extern cvar_t cl_fakelocalping_max; + int NetConn_SendReliableMessage(netconn_t *conn, sizebuf_t *data); //void NetConn_SendMessageNext(netconn_t *conn); //void NetConn_ReSendMessage(netconn_t *conn);