- fixed weapon drawing rules to account for the death camera.

This commit is contained in:
Christoph Oelckers 2014-09-21 11:08:38 +02:00
parent 4682736585
commit 7359631a43
1 changed files with 3 additions and 1 deletions

View File

@ -62,6 +62,7 @@ EXTERN_CVAR (Bool, r_drawplayersprites)
EXTERN_CVAR(Float, transsouls)
EXTERN_CVAR (Bool, st_scale)
EXTERN_CVAR(Int, gl_fuzztype)
EXTERN_CVAR (Bool, r_deathcamera)
//==========================================================================
@ -191,7 +192,8 @@ void FGLRenderer::DrawPlayerSprites(sector_t * viewsector, bool hudModelStep)
if (!player ||
!r_drawplayersprites ||
!camera->player ||
(players[consoleplayer].cheats & CF_CHASECAM))
(player->cheats & CF_CHASECAM) ||
(r_deathcamera && camera->health <= 0))
return;
P_BobWeapon (player, &player->psprites[ps_weapon], &ofsx, &ofsy);