From e499e2d6691e4924704d314a0165de9c965653b9 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 23 Mar 2005 00:16:28 +0000 Subject: [PATCH] view_ofs now affects intermission cameras, mods usually set view_ofs to '0 0 0' when going to intermission so this won't break anything, but allows Nexuiz to freeze frame the final moment with players still standing where they were git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5120 d7cf8633-e32d-0410-b094-e92efae38249 --- view.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/view.c b/view.c index dc646ae7..599fce42 100644 --- a/view.c +++ b/view.c @@ -324,6 +324,8 @@ void V_CalcRefdef (void) // entity is a fixed camera, just copy the matrix Matrix4x4_Copy(&r_refdef.viewentitymatrix, &ent->render.matrix); Matrix4x4_Copy(&viewmodelmatrix, &ent->render.matrix); + r_refdef.viewentitymatrix.m[2][3] += cl.stats[STAT_VIEWHEIGHT]; + viewmodelmatrix.m[2][3] += cl.stats[STAT_VIEWHEIGHT]; } else { -- 2.39.2