]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
prvm_edict: Implement PRVM_ED_FindGlobalEval
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 4f3e0e45b2e46becd534d25ef4a46ea9de937152..faadf05453d0cd966ec19a7413a469002766c50b 100644 (file)
--- a/host.c
+++ b/host.c
@@ -436,7 +436,8 @@ double Host_Frame(double time)
 
 static inline void Host_Sleep(double time)
 {
-       double time0, delta;
+       static double delta;
+       double time0;
 
        if(host_maxwait.value <= 0)
                time = min(time, 1000000.0);
@@ -528,8 +529,10 @@ void Host_StartVideo(void)
        if (!vid_opened && cls.state != ca_dedicated)
        {
                vid_opened = true;
+#ifdef WIN32
                // make sure we open sockets before opening video because the Windows Firewall "unblock?" dialog can screw up the graphics context on some graphics drivers
                NetConn_UpdateSockets();
+#endif
                VID_Start();
                CDAudio_Startup();
        }
@@ -746,7 +749,7 @@ static void Host_Init (void)
 
        // put up the loading image so the user doesn't stare at a black screen...
        SCR_BeginLoadingPlaque(true);
-       
+
        // check for special benchmark mode
 // COMMANDLINEOPTION: Client: -benchmark <demoname> runs a timedemo and quits, results of any timedemo can be found in gamedir/benchmark.log (for example id1/benchmark.log)
        i = COM_CheckParm("-benchmark");