From: Cloudwalk Date: Fri, 26 Jun 2020 16:29:55 +0000 (-0400) Subject: Wrap cvar callback around ifdef X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2FCloudwalk%2Fcvar-callback-fix;p=xonotic%2Fdarkplaces.git Wrap cvar callback around ifdef --- diff --git a/netconn.c b/netconn.c index 73f2b5c1..a5235afa 100755 --- a/netconn.c +++ b/netconn.c @@ -3889,7 +3889,9 @@ void NetConn_Init(void) Cvar_RegisterVariable(&net_slist_timeout); Cvar_RegisterVariable(&net_slist_maxtries); Cvar_RegisterVariable(&net_slist_favorites); +#ifdef CONFIG_MENU Cvar_RegisterCallback(&net_slist_favorites, NetConn_UpdateFavorites_c); +#endif Cvar_RegisterVariable(&net_slist_pause); if(LHNET_DefaultDSCP(-1) >= 0) // register cvar only if supported Cvar_RegisterVariable(&net_tos_dscp);