From 3d19b4fbe87586e1a28e4af52f11d637ee389e18 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 16 May 2005 03:08:04 +0000 Subject: [PATCH] fix bug that rotated all sounds 90 degrees to the right in Nexuiz (because it has seriously messed up player models) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5303 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_main.c | 1 + host.c | 12 ++++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/cl_main.c b/cl_main.c index adeeedb3..29fad13a 100644 --- 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 b81831af..da6cfc11 100644 --- 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(); -- 2.39.2