]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
removed scr_conspeed, now always instantaneous console opening/closing
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Apr 2006 06:03:37 +0000 (06:03 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Apr 2006 06:03:37 +0000 (06:03 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6301 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c
menu.c
screen.h

index 99e29b968696dc70f7cb4c30e539974317b2f988..9e8785a30041974632c73560d7e894178f13f2cc 100644 (file)
@@ -8,7 +8,6 @@
 
 cvar_t scr_viewsize = {CVAR_SAVE, "viewsize","100", "how large the view should be, 110 disables inventory bar, 120 disables status bar"};
 cvar_t scr_fov = {CVAR_SAVE, "fov","90", "field of vision, 1-170 degrees, default 90, some players use 110-130"};      // 1 - 170
-cvar_t scr_conspeed = {CVAR_SAVE, "scr_conspeed","900", "speed of console open/close"}; // LordHavoc: quake used 300
 cvar_t scr_conalpha = {CVAR_SAVE, "scr_conalpha", "1", "opacity of console background"};
 cvar_t scr_conbrightness = {CVAR_SAVE, "scr_conbrightness", "0.2", "brightness of console background (0 = black, 1 = image)"};
 cvar_t scr_conforcewhiledisconnected = {0, "scr_conforcewhiledisconnected", "1", "forces fullscreen console while disconnected"};
@@ -352,23 +351,7 @@ void SCR_SetUpToDrawConsole (void)
        else
                conlines = 0;                           // none visible
 
-       if (scr_conspeed.value)
-       {
-               if (scr_con_current > conlines)
-               {
-                       scr_con_current -= scr_conspeed.value*cl.realframetime;
-                       if (scr_con_current < conlines)
-                               scr_con_current = conlines;
-               }
-               else if (scr_con_current < conlines)
-               {
-                       scr_con_current += scr_conspeed.value*cl.realframetime;
-                       if (scr_con_current > conlines)
-                               scr_con_current = conlines;
-               }
-       }
-       else
-               scr_con_current = conlines;
+       scr_con_current = conlines;
 }
 
 /*
@@ -527,7 +510,6 @@ void CL_Screen_Init(void)
 {
        Cvar_RegisterVariable (&scr_fov);
        Cvar_RegisterVariable (&scr_viewsize);
-       Cvar_RegisterVariable (&scr_conspeed);
        Cvar_RegisterVariable (&scr_conalpha);
        Cvar_RegisterVariable (&scr_conbrightness);
        Cvar_RegisterVariable (&scr_conforcewhiledisconnected);
diff --git a/menu.c b/menu.c
index 46ca530d73e0bec98713881c931c74256f1859ca..19f63f677e2b8ef4dc3aa89c5a0614354f1ff99c 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -1559,8 +1559,6 @@ static void M_Menu_Options_AdjustSliders (int dir)
                Cvar_SetValueQuick (&vid_conwidth, bound(320, vid_conwidth.value + dir * 64, 2048));
        else if (options_cursor == optnum++)
                Cvar_SetValueQuick (&vid_conheight, bound(240, vid_conheight.value + dir * 48, 1536));
-       else if (options_cursor == optnum++)
-               Cvar_SetValueQuick (&scr_conspeed, bound(0, scr_conspeed.value + dir * 100, 1000));
        else if (options_cursor == optnum++)
                Cvar_SetValueQuick (&scr_conalpha, bound(0, scr_conalpha.value + dir * 0.2, 1));
        else if (options_cursor == optnum++)
@@ -1698,7 +1696,6 @@ static void M_Options_Draw (void)
        M_Options_PrintCommand( "     Color Control", true);
        M_Options_PrintSlider(  "  2D Screen Width ", true, vid_conwidth.value, 320, 2048);
        M_Options_PrintSlider(  "  2D Screen Height", true, vid_conheight.value, 240, 1536);
-       M_Options_PrintSlider(  "     Console Speed", true, scr_conspeed.value, 0, 1000);
        M_Options_PrintSlider(  "     Console Alpha", true, scr_conalpha.value, 0, 1);
        M_Options_PrintSlider(  "Conback Brightness", true, scr_conbrightness.value, 0, 1);
        M_Options_PrintSlider(  "     Sbar Alpha BG", true, sbar_alpha_bg.value, 0, 1);
index b479bc45396cb01ed8fecd9c5bc7e546d701dab9..dfdb4e56a63344de90e75094f7c7af0285681396 100644 (file)
--- a/screen.h
+++ b/screen.h
@@ -42,7 +42,6 @@ extern cvar_t crosshair;
 extern cvar_t crosshair_size;
 extern cvar_t crosshair_static;
 
-extern cvar_t scr_conspeed;
 extern cvar_t scr_conalpha;
 extern cvar_t scr_conbrightness;
 extern cvar_t r_letterbox;