From e13627e9d81f3764ef6490d86e242c5e81e425f9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 5 Jan 2017 11:28:08 +0100 Subject: [PATCH] - fixed: portal offsets at frame start were not applied to ViewActorPos. --- src/r_utility.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/r_utility.cpp b/src/r_utility.cpp index 0ac3d9cde..5e9ac6b52 100644 --- a/src/r_utility.cpp +++ b/src/r_utility.cpp @@ -491,6 +491,7 @@ void R_InterpolateView (player_t *player, double Frac, InterpolationViewer *ivie if (ViewPos.Z > viewsector->GetPortalPlaneZ(sector_t::ceiling)) { ViewPos += viewsector->GetPortalDisplacement(sector_t::ceiling); + ViewActorPos += viewsector->GetPortalDisplacement(sector_t::ceiling); viewsector = R_PointInSubsector(ViewPos)->sector; moved = true; } @@ -503,6 +504,7 @@ void R_InterpolateView (player_t *player, double Frac, InterpolationViewer *ivie if (ViewPos.Z < viewsector->GetPortalPlaneZ(sector_t::floor)) { ViewPos += viewsector->GetPortalDisplacement(sector_t::floor); + ViewActorPos += viewsector->GetPortalDisplacement(sector_t::floor); viewsector = R_PointInSubsector(ViewPos)->sector; moved = true; }