]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
view_ofs now affects intermission cameras, mods usually set view_ofs to '0 0 0' when...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 23 Mar 2005 00:16:28 +0000 (00:16 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 23 Mar 2005 00:16:28 +0000 (00:16 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5120 d7cf8633-e32d-0410-b094-e92efae38249

view.c

diff --git a/view.c b/view.c
index dc646ae76c8c83a36c1b884824f9d39e56a17402..599fce42722e0eb4fcba3548bdad8f7a41e80dda 100644 (file)
--- 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
                {