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
+4 -3
View File
@@ -1255,11 +1255,11 @@ bool menukey(int code, bool isdown, int unicode, SDLMod mod)
}
}
void rendermenumdl()
bool rendermenumdl()
{
if(!curmenu) return;
if(!curmenu) return false;
gmenu &m = *curmenu;
if(!m.mdl) return;
if(!m.mdl) return false;
glPushMatrix();
glLoadIdentity();
@@ -1294,6 +1294,7 @@ void rendermenumdl()
rendermodel(isplayermodel ? "playermodels" : m.mdl, m.anim|ANIM_DYNALLOC, tex, -1, pos, 0, yaw, pitch, 0, 0, NULL, a, m.scale ? m.scale/25.0f : 1.0f);
glPopMatrix();
return !(isplayermodel || isweapon);
}
void gmenu::refresh()