]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Wrap cvar callback around ifdef Cloudwalk/cvar-callback-fix
authorCloudwalk <mazecraze96@gmail.com>
Fri, 26 Jun 2020 16:29:55 +0000 (12:29 -0400)
committerCloudwalk <mazecraze96@gmail.com>
Fri, 26 Jun 2020 16:29:55 +0000 (12:29 -0400)
netconn.c

index 73f2b5c1970ca47cbf61feae8d3e406021a39f32..a5235afa5600d6c7200b688d457bff59feed72c6 100755 (executable)
--- 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);