[ioquake3] 06/50: Have spectator always be in first person
Simon McVittie
smcv at debian.org
Sun Jul 23 21:55:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit 7b9ccd14634df177280484db845ada007ea13be9
Author: Zack Middleton <zack at cloemail.com>
Date: Sat Jun 24 20:02:44 2017 -0500
Have spectator always be in first person
Flying around in third person with no body is weird.
---
code/cgame/cg_view.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/code/cgame/cg_view.c b/code/cgame/cg_view.c
index 1131841..74bd248 100644
--- a/code/cgame/cg_view.c
+++ b/code/cgame/cg_view.c
@@ -796,7 +796,8 @@ void CG_DrawActiveFrame( int serverTime, stereoFrame_t stereoView, qboolean demo
CG_PredictPlayerState();
// decide on third person view
- cg.renderingThirdPerson = cg_thirdPerson.integer || (cg.snap->ps.stats[STAT_HEALTH] <= 0);
+ cg.renderingThirdPerson = cg.snap->ps.persistant[PERS_TEAM] != TEAM_SPECTATOR
+ && (cg_thirdPerson.integer || (cg.snap->ps.stats[STAT_HEALTH] <= 0));
// build cg.refdef
inwater = CG_CalcViewValues();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list