hide hudgun while menu shows a mapmodel

...to avoid overlap
This commit is contained in:
ac-stef
2016-11-20 15:20:16 +01:00
parent 55142cbe41
commit 8cd6d15247
3 changed files with 6 additions and 6 deletions
+1 -2
View File
@@ -949,12 +949,11 @@ void drawhudgun()
{
sethudgunperspective(true);
if(hudgun && (specthudgun || !player1->isspectating()) && camera1->type==ENT_PLAYER)
if(!rendermenumdl() && hudgun && (specthudgun || !player1->isspectating()) && camera1->type==ENT_PLAYER)
{
playerent *p = (playerent *)camera1;
if(p->state==CS_ALIVE) p->weaponsel->renderhudmodel();
}
rendermenumdl();
sethudgunperspective(false);
}