alternative way to detect when death tilt is needed.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4288 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-04-06 03:10:12 +00:00
parent 586eee6a60
commit 90b07d7bb6

View file

@ -1102,7 +1102,7 @@ void V_CalcRefdef (int pnum)
viewheight += cl.crouch[pnum];
if (view_message && view_message->flags & PF_DEAD && v_deathtilt.value) // PF_GIB will also set PF_DEAD
if (cl.playerview[pnum].stats[STAT_HEALTH] < 0 && spec_track[pnum] >= 0 && v_deathtilt.value) // PF_GIB will also set PF_DEAD
{
if (!cl.spectator || !cl_chasecam.ival)
r_refdef.viewangles[ROLL] = 80*v_deathtilt.value; // dead view angle