From e3ddc74eb12ce058dd565564488a63d19328664b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 24 Feb 2016 01:13:55 +0100 Subject: [PATCH] - check r_showviewer when deciding whether to render the player sprite. This is necessary when camera and player end up on different sides of a portal. --- src/gl/scene/gl_sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/scene/gl_sprite.cpp b/src/gl/scene/gl_sprite.cpp index 5d8e7436e..01bc1717d 100644 --- a/src/gl/scene/gl_sprite.cpp +++ b/src/gl/scene/gl_sprite.cpp @@ -483,7 +483,7 @@ void GLSprite::Process(AActor* thing,sector_t * sector) sector_t rs; sector_t * rendersector; // don't draw the thing that's used as camera (for viewshifts during quakes!) - if (thing==GLRenderer->mViewActor) return; + if (thing==GLRenderer->mViewActor || (thing == players[consoleplayer].camera && !r_showviewer)) return; // Don't waste time projecting sprites that are definitely not visible. if (thing == NULL || thing->sprite == 0 || !thing->IsVisibleToPlayer())