Reset v_cshift when changing who we're tracking, to try to hide bugs caused by TF flashbangs not being reset by the mod. Stuffcmds suck.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5789 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2020-12-05 04:07:41 +00:00
parent 546be5849a
commit c652b9a7e5

View file

@ -553,6 +553,9 @@ void Cam_Unlock(playerview_t *pv)
SCR_CenterPrint(pv-cl.playerview, NULL, true);
Sbar_Changed();
//flashgrens suck
pv->cshifts[CSHIFT_SERVER].percent = 0;
Skin_FlushPlayers();
}
}
@ -563,6 +566,10 @@ void Cam_Lock(playerview_t *pv, int playernum)
CL_SendClientCommand(true, "ptrack %i", playernum);
if (pv->cam_spec_track != playernum)
{ //flashgrens suck
pv->cshifts[CSHIFT_SERVER].percent = 0;
}
pv->cam_spec_track = playernum;
pv->cam_state = CAM_PENDING;
pv->viewentity = (cls.demoplayback)?0:(pv->playernum+1); //free floating until actually locked