From 762d186657b873a30b82b58200e5d76845b25e25 Mon Sep 17 00:00:00 2001 From: MajorCooke Date: Mon, 25 Apr 2016 14:21:34 -0500 Subject: [PATCH] Finished interpolation. --- src/r_utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_utility.cpp b/src/r_utility.cpp index a61227a5c0..20f3d506cc 100644 --- a/src/r_utility.cpp +++ b/src/r_utility.cpp @@ -549,7 +549,7 @@ void R_InterpolateView (player_t *player, double Frac, InterpolationViewer *ivie { ViewPitch = (iview->Old.Angles.Pitch + deltaangle(iview->Old.Angles.Pitch, iview->New.Angles.Pitch) * Frac).Normalized180(); ViewAngle = (oviewangle + deltaangle(oviewangle, nviewangle) * Frac).Normalized180(); - ViewRoll = iview->Old.Angles.Roll.Normalized180(); + ViewRoll = (iview->Old.Angles.Roll + deltaangle(iview->Old.Angles.Roll, iview->New.Angles.Roll) * Frac).Normalized180(); } // Due to interpolation this is not necessarily the same as the sector the camera is in.