From: havoc Date: Wed, 23 Mar 2005 00:16:28 +0000 (+0000) Subject: view_ofs now affects intermission cameras, mods usually set view_ofs to '0 0 0' when... X-Git-Tag: xonotic-v0.1.0preview~5053 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e499e2d6691e4924704d314a0165de9c965653b9;p=xonotic%2Fdarkplaces.git 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 --- 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 {