Menu-FN: fix the player model preview frames showing up when they shouldn't.
This commit is contained in:
parent
a1d8f17164
commit
cbf78aa26a
1 changed files with 6 additions and 6 deletions
|
@ -460,10 +460,6 @@ void
|
|||
menu_customize_draw(void)
|
||||
{
|
||||
|
||||
drawfill([g_menuofs[0] + 410,g_menuofs[1] + 160], [170, 221], FRAME_COLOR, 1.0f);
|
||||
drawfill([g_menuofs[0] + 413,g_menuofs[1] + 163], [164,190], [0,0,0], 1.0f);
|
||||
|
||||
Widget_Draw(fn_customize);
|
||||
Header_Draw(HEAD_CUSTOMIZE);
|
||||
WLabel_Static(212, 140, m_reslbl[IDS_PLAYERINFO_NAME], 14, 14, [1,1,1],
|
||||
1.0f, 0, font_label);
|
||||
|
@ -488,10 +484,12 @@ menu_customize_draw(void)
|
|||
1.0f, 0, font_label);
|
||||
|
||||
|
||||
WLabel_Static(410, 390, "Colors", 14, 14, [1,1,1],
|
||||
1.0f, 0, font_label);
|
||||
|
||||
if (games[gameinfo_current].nomodels == 0) {
|
||||
drawfill([g_menuofs[0] + 410,g_menuofs[1] + 160], [170, 221], FRAME_COLOR, 1.0f);
|
||||
drawfill([g_menuofs[0] + 413,g_menuofs[1] + 163], [164,190], [0,0,0], 1.0f);
|
||||
WLabel_Static(410, 390, "Colors", 14, 14, [1,1,1],
|
||||
1.0f, 0, font_label);
|
||||
WLabel_Static(410, 140, sprintf(m_reslbl[IDS_MODEL_NAME], cvar_string("_cl_playermodel")), 14, 14, [1,1,1],
|
||||
1.0f, 0, font_arial);
|
||||
#ifdef MODEL_PREVIEW
|
||||
|
@ -509,6 +507,8 @@ menu_customize_draw(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
Widget_Draw(fn_customize);
|
||||
|
||||
#ifdef MODEL_PREVIEW
|
||||
if (g_iPreviewmodelSubUpdate == 0) {
|
||||
cz_cxHQModelsChanged(cvar("cl_himodels"));
|
||||
|
|
Loading…
Reference in a new issue