mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- 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:
parent
e107d8ff48
commit
e3ddc74eb1
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue