mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
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:
parent
546be5849a
commit
c652b9a7e5
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue