if (cls.state == ca_dedicated)
return;
+ Con_DPrintf("CL_Disconnect\n");
+
// stop sounds (especially looping!)
S_StopAllSounds (true);
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;
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)))
{