From 4de01cfdca58854b9f6ec07fc42bea4bc86a3192 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 2 Dec 2004 07:11:32 +0000 Subject: [PATCH] mirrored ents angled correctly. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@545 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_rmain.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/gl/gl_rmain.c b/engine/gl/gl_rmain.c index d14bf4d15..19b7152d1 100644 --- a/engine/gl/gl_rmain.c +++ b/engine/gl/gl_rmain.c @@ -1411,6 +1411,8 @@ void R_MirrorAddPlayerModels (void) ent->angles[YAW] = r_refdef.viewangles[YAW]; // ent->angles[ROLL] = 0; ent->angles[ROLL] = V_CalcRoll (ent->angles, state->velocity)*4; + AngleVectors(ent->angles, ent->axis[0], ent->axis[1], ent->axis[2]); + VectorInverse(ent->axis[1]); // only predict half the move to minimize overruns msec = 500*(playertime - state->state_time); @@ -1492,6 +1494,7 @@ void R_Mirror (void) glDepthFunc (GL_LEQUAL); R_RenderScene (); + GLR_DrawWaterSurfaces ();