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)
// 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);
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();