From c652b9a7e5f6d017eefe74da7080ccbe2ac4bdb4 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 5 Dec 2020 04:07:41 +0000 Subject: [PATCH] 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 --- engine/client/cl_cam.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/client/cl_cam.c b/engine/client/cl_cam.c index 7bc5e0d58..5932de2b6 100644 --- a/engine/client/cl_cam.c +++ b/engine/client/cl_cam.c @@ -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