]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - netconn.h
added vid_stereobuffer cvar based on patch from syschuck on the alientrap forums
[xonotic/darkplaces.git] / netconn.h
index e798cfda32dac900bc8fea330c3023593df935a8..bbd1b88ed1cb3de1498bc284d78f0efa5e7490de 100755 (executable)
--- a/netconn.h
+++ b/netconn.h
@@ -185,6 +185,10 @@ typedef struct netconn_s
        }
        qw;
 
+       // this tracks which of the last 100 received packet sequence numbers were lost
+       int packetlostcounter;
+       unsigned char packetlost[100];
+
        char address[128];
 } netconn_t;
 
@@ -301,21 +305,6 @@ extern int serverlist_cachecount;
 
 extern qboolean serverlist_consoleoutput;
 
-#if !defined(_WIN32) && !defined(__linux__) && !defined(SUNOS)
-#ifndef htonl
-extern unsigned long htonl (unsigned long hostlong);
-#endif
-#ifndef htons
-extern unsigned short htons (unsigned short hostshort);
-#endif
-#ifndef ntohl
-extern unsigned long ntohl (unsigned long netlong);
-#endif
-#ifndef ntohs
-extern unsigned short ntohs (unsigned short netshort);
-#endif
-#endif
-
 //============================================================================
 //
 // public network functions