engine: client: gameui: expose animated_title and hd_background flags to main menu API

This commit is contained in:
Alibek Omarov 2023-11-20 01:55:04 +03:00
parent fb0102eb8e
commit 9fcd4baa87
2 changed files with 9 additions and 3 deletions

View File

@ -19,6 +19,8 @@ GNU General Public License for more details.
#define GFL_NOMODELS (1<<0)
#define GFL_NOSKILLS (1<<1)
#define GFL_RENDER_PICBUTTON_TEXT (1<<2)
#define GFL_HD_BACKGROUND (1<<3)
#define GFL_ANIMATED_TITLE (1<<4)
/*
========================================================================

View File

@ -414,11 +414,15 @@ static void UI_ConvertGameInfo( GAMEINFO *out, gameinfo_t *in )
out->gamemode = in->gamemode;
if( in->nomodels )
out->flags |= GFL_NOMODELS;
SetBits( out->flags, GFL_NOMODELS );
if( in->noskills )
out->flags |= GFL_NOSKILLS;
SetBits( out->flags, GFL_NOSKILLS );
if( in->render_picbutton_text )
out->flags |= GFL_RENDER_PICBUTTON_TEXT;
SetBits( out->flags, GFL_RENDER_PICBUTTON_TEXT );
if( in->hd_background )
SetBits( out->flags, GFL_HD_BACKGROUND );
if( in->animated_title )
SetBits( out->flags, GFL_ANIMATED_TITLE );
}
/*