X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=cl_main.c;h=b9ce01a39e95b66e0654305745adbfd8f82be3e7;hb=31fadfa8c3a18ab29507b8aae0a9c973931e069b;hp=b861dc3be1709a31112cf8e1026b68d277f324a0;hpb=045f0aa1cae1b407c05cd5fa9edb58735f6572de;p=xonotic%2Fdarkplaces.git diff --git a/cl_main.c b/cl_main.c index b861dc3b..b9ce01a3 100644 --- a/cl_main.c +++ b/cl_main.c @@ -159,6 +159,8 @@ void CL_Disconnect(void) if (cls.state == ca_dedicated) return; + Con_DPrintf("CL_Disconnect\n"); + // stop sounds (especially looping!) S_StopAllSounds (true); @@ -184,13 +186,6 @@ void CL_Disconnect(void) SZ_Clear(&cls.message); NetConn_Close(cls.netcon); cls.netcon = NULL; - // if running a local server, shut it down - if (sv.active) - { - // prevent this code from executing again during Host_ShutdownServer - cls.state = ca_disconnected; - Host_ShutdownServer(false); - } } cls.state = ca_disconnected; @@ -622,7 +617,8 @@ void CL_LinkNetworkEntity(entity_t *e) if (e->render.model) { Mod_CheckLoaded(e->render.model); - if (e->render.model->type == mod_alias || e->render.model->type == mod_sprite) + // if model is alias or this is a tenebrae-like dlight, reverse pitch direction + if (e->render.model->type == mod_alias || (e->state_current.lightpflags & PFLAGS_FULLDYNAMIC)) angles[0] = -angles[0]; if ((e->render.model->flags & EF_ROTATE) && (!e->state_current.tagentity && !(e->render.flags & RENDER_VIEWMODEL))) {