]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
made scr_printspeed 0 also disable slow printing
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 27 Mar 2007 18:36:21 +0000 (18:36 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 27 Mar 2007 18:36:21 +0000 (18:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7011 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c

index 0070005eae5a0c97827bb7c16d11be2694498f81..be1e35268c9a520aed002f914cb58a818076841f 100644 (file)
@@ -21,7 +21,7 @@ cvar_t scr_showram = {CVAR_SAVE, "showram","1", "show ram icon if low on surface
 cvar_t scr_showturtle = {CVAR_SAVE, "showturtle","0", "show turtle icon when framerate is too low (not used)"};
 cvar_t scr_showpause = {CVAR_SAVE, "showpause","1", "show pause icon when game is paused"};
 cvar_t scr_showbrand = {0, "showbrand","0", "shows gfx/brand.tga in a corner of the screen (different values select different positions, including centered)"};
-cvar_t scr_printspeed = {0, "scr_printspeed","1000000", "speed of intermission printing (episode end texts), a value of 1000000 or higher disables the slow printing"};
+cvar_t scr_printspeed = {0, "scr_printspeed","0", "speed of intermission printing (episode end texts), a value of 0 disables the slow printing"};
 cvar_t vid_conwidth = {CVAR_SAVE, "vid_conwidth", "640", "virtual width of 2D graphics system"};
 cvar_t vid_conheight = {CVAR_SAVE, "vid_conheight", "480", "virtual height of 2D graphics system"};
 cvar_t vid_pixelheight = {CVAR_SAVE, "vid_pixelheight", "1", "adjusts vertical field of vision to account for non-square pixels (1280x1024 on a CRT monitor for example)"};
@@ -110,7 +110,7 @@ void SCR_DrawCenterString (void)
        int             color;
 
 // the finale prints the characters one at a time, except if printspeed is an absurdly high value
-       if (cl.intermission && scr_printspeed.value < 1000000)
+       if (cl.intermission && scr_printspeed.value > 0 && scr_printspeed.value < 1000000)
                remaining = (int)(scr_printspeed.value * (cl.time - scr_centertime_start));
        else
                remaining = 9999;