From 4ab0ac6b4c6aaa550714643af2f0f8d514e90cb3 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sat, 27 Jun 2020 02:27:19 +0000 Subject: [PATCH] Wrap cvar callback around ifdef git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12736 d7cf8633-e32d-0410-b094-e92efae38249 --- netconn.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2