From 992994239bb97e5dde40f44ae2f712e7ed2f493c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 30 Nov 2013 13:01:48 +0100 Subject: [PATCH] - changed rules for drawing HUD sprites to match the software renderer. --- src/gl/scene/gl_weapon.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gl/scene/gl_weapon.cpp b/src/gl/scene/gl_weapon.cpp index 61289f48b..aa991c0a0 100644 --- a/src/gl/scene/gl_weapon.cpp +++ b/src/gl/scene/gl_weapon.cpp @@ -185,8 +185,17 @@ void FGLRenderer::DrawPlayerSprites(sector_t * viewsector, bool hudModelStep) AActor * playermo=players[consoleplayer].camera; player_t * player=playermo->player; + // this is the same as the software renderer + if (!player || + !r_drawplayersprites || + !camera->player || + (players[consoleplayer].cheats & CF_CHASECAM)) + return; + + /* if(!player || playermo->renderflags&RF_INVISIBLE || !r_drawplayersprites || mViewActor!=playermo || playermo->RenderStyle.BlendOp == STYLEOP_None) return; + */ P_BobWeapon (player, &player->psprites[ps_weapon], &ofsx, &ofsy);