]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix bug that rotated all sounds 90 degrees to the right in Nexuiz (because it has...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 16 May 2005 03:08:04 +0000 (03:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 16 May 2005 03:08:04 +0000 (03:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5303 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c
host.c

index adeeedb318ef89aaf91f1a71a3ccb87cf7bb51ad..29fad13afb76c56232b6620a4a0b1ee11f08fc83 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1244,6 +1244,7 @@ int CL_ReadFromServer(void)
        r_refdef.time = cl.time;
        r_refdef.extraupdate = !r_speeds.integer;
        r_refdef.numentities = 0;
+       Matrix4x4_CreateIdentity(&r_refdef.viewentitymatrix);
        cl_num_brushmodel_entities = 0;
 
        if (cls.state == ca_connected && cls.signon == SIGNONS)
diff --git a/host.c b/host.c
index b81831afe7917cd721b4e93f500755e62fe27635..da6cfc116c9377d89ac3eedf334113e87b71f250 100644 (file)
--- a/host.c
+++ b/host.c
@@ -401,9 +401,11 @@ void SV_DropClient(qboolean crash)
                // free the client (the body stays around)
                if (!crash)
                {
-                       // LordHavoc: no opportunity for resending, so use unreliable
+                       // LordHavoc: no opportunity for resending, so use unreliable 3 times
                        MSG_WriteByte(&host_client->message, svc_disconnect);
                        NetConn_SendUnreliableMessage(host_client->netconnection, &host_client->message);
+                       NetConn_SendUnreliableMessage(host_client->netconnection, &host_client->message);
+                       NetConn_SendUnreliableMessage(host_client->netconnection, &host_client->message);
                }
                // break the net connection
                NetConn_Close(host_client->netconnection);
@@ -798,13 +800,7 @@ void _Host_Frame (float time)
                time2 = Sys_DoubleTime();
 
        // update audio
-       if (cls.signon == SIGNONS && cl_entities[cl.viewentity].state_current.active)
-       {
-               // LordHavoc: this used to use renderer variables (eww)
-               S_Update(&cl_entities[cl.viewentity].render.matrix);
-       }
-       else
-               S_Update(&identitymatrix);
+       S_Update(&r_refdef.viewentitymatrix);
 
        CDAudio_Update();