]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
Fix some warnings.
[xonotic/darkplaces.git] / cl_screen.c
index 4b6100f835a6ddc4c4253dad5c9a67ee298cabf4..f476d3c09e6d94a0d8c3a908f1013b52d17b4e02 100644 (file)
@@ -694,7 +694,9 @@ static void SCR_SetUpToDrawConsole (void)
 {
        // lines of console to display
        float conlines;
+#ifdef CONFIG_MENU
        static int framecounter = 0;
+#endif
 
        Con_CheckResize ();
 
@@ -707,8 +709,8 @@ static void SCR_SetUpToDrawConsole (void)
                        framecounter++;
        }
        else
-#endif
                framecounter = 0;
+#endif
 
        if (scr_conforcewhiledisconnected.integer && key_dest == key_game && cls.signon != SIGNONS)
                key_consoleactive |= KEY_CONSOLEACTIVE_FORCED;