]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - lhnet.c
add cl_dyntexture.o to makefile
[xonotic/darkplaces.git] / lhnet.c
diff --git a/lhnet.c b/lhnet.c
index b97be361e24cb6a4629ab478fe4bd814c45def4f..2546ff3b83fffa9ff4808e1a96fb71c417b67838 100644 (file)
--- a/lhnet.c
+++ b/lhnet.c
@@ -1,6 +1,10 @@
 
 // Written by Forest Hale 2003-06-15 and placed into public domain.
 
+#ifndef STANDALONETEST
+#include "quakedef.h"
+#endif
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <time.h>
@@ -23,7 +27,6 @@
 
 // for Z_Malloc/Z_Free in quake
 #ifndef STANDALONETEST
-#include "quakedef.h"
 #include "zone.h"
 #include "sys.h"
 #include "netconn.h"
@@ -513,7 +516,7 @@ void LHNET_SleepUntilPacket_Microseconds(int microseconds)
                {
                        if (lastfd < s->inetsocket)
                                lastfd = s->inetsocket;
-                       FD_SET(s->inetsocket, &fdreadset);
+                       FD_SET((unsigned int)s->inetsocket, &fdreadset);
                }
        }
        tv.tv_sec = microseconds / 1000000;