From 3f72f8acd5f01f423300c3b699d7ba9dc76af705 Mon Sep 17 00:00:00 2001 From: Major Cooke Date: Sat, 3 Feb 2024 10:11:29 -0600 Subject: [PATCH] Fixed psprites & viewpos being completely broken for non-isometric mode. This line of code was altering a global cvar. --- src/rendering/hwrenderer/hw_entrypoint.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/rendering/hwrenderer/hw_entrypoint.cpp b/src/rendering/hwrenderer/hw_entrypoint.cpp index 03c68dee00..24c4977783 100644 --- a/src/rendering/hwrenderer/hw_entrypoint.cpp +++ b/src/rendering/hwrenderer/hw_entrypoint.cpp @@ -162,8 +162,6 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou di->Viewpoint.FieldOfView = DAngle::fromDeg(fov); // Set the real FOV for the current scene (it's not necessarily the same as the global setting in r_viewpoint) - if(mainview && (camera->ViewPos != NULL) && (camera->ViewPos->Offset.XY().Length() > 0)) r_drawplayersprites = false; - else r_drawplayersprites = true; // Restore first-person hands/weapons // Stereo mode specific perspective projection float inv_iso_dist = 1.0f; bool iso_ortho = (camera->ViewPos != NULL) && (camera->ViewPos->Flags & VPSF_ORTHOGRAPHIC);