#include <time.h>
#include "libcurl.h"
+#ifdef CONFIG_CD
#include "cdaudio.h"
+#endif
#include "cl_video.h"
#include "progsvm.h"
#include "csprogs.h"
buf.data = bufdata;
buf.maxsize = sizeof(bufdata);
MSG_WriteByte(&buf, svc_disconnect);
- NetConn_SendUnreliableMessage(host_client->netconnection, &buf, sv.protocol, 10000, false);
- NetConn_SendUnreliableMessage(host_client->netconnection, &buf, sv.protocol, 10000, false);
- NetConn_SendUnreliableMessage(host_client->netconnection, &buf, sv.protocol, 10000, false);
+ NetConn_SendUnreliableMessage(host_client->netconnection, &buf, sv.protocol, 10000, 0, false);
+ NetConn_SendUnreliableMessage(host_client->netconnection, &buf, sv.protocol, 10000, 0, false);
+ NetConn_SendUnreliableMessage(host_client->netconnection, &buf, sv.protocol, 10000, 0, false);
}
}
{
R_TimeReport("---");
Collision_Cache_NewFrame();
- R_TimeReport("collisioncache");
+ R_TimeReport("photoncache");
// decide the simulation time
if (cls.capturevideo.active)
{
else
S_Update(&r_refdef.view.matrix);
+#ifdef CONFIG_CD
CDAudio_Update();
R_TimeReport("audio");
+#endif
// reset gathering of mouse input
in_mouse_x = in_mouse_y = 0;
// 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();
VID_Start();
+#ifdef CONFIG_CD
CDAudio_Startup();
+#endif
}
}
VID_Init();
Render_Init();
S_Init();
+#ifdef CONFIG_CD
CDAudio_Init();
+#endif
Key_Init();
CL_Init();
}
Host_SaveConfig();
+#ifdef CONFIG_CD
CDAudio_Shutdown ();
+#endif
S_Terminate ();
Curl_Shutdown ();
NetConn_Shutdown ();