From 9fcd4baa87a6c88484c92d4b8856edc75be21365 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 20 Nov 2023 01:55:04 +0300 Subject: [PATCH] engine: client: gameui: expose animated_title and hd_background flags to main menu API --- common/gameinfo.h | 2 ++ engine/client/cl_gameui.c | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/common/gameinfo.h b/common/gameinfo.h index 467185cc..a53d9c2b 100644 --- a/common/gameinfo.h +++ b/common/gameinfo.h @@ -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) /* ======================================================================== diff --git a/engine/client/cl_gameui.c b/engine/client/cl_gameui.c index fefdd7a7..ce5d43e2 100644 --- a/engine/client/cl_gameui.c +++ b/engine/client/cl_gameui.c @@ -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 ); } /*