- 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.

This commit is contained in:
Christoph Oelckers 2016-02-24 01:13:55 +01:00
parent e107d8ff48
commit e3ddc74eb1

View file

@ -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())