]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
turn font size snapping into a float
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 438c7bc6d263b9cf6dcac27237a66e7a6dbca878..67ab1b57f4c67dc6b92d938ecf27cee6c17d2657 100644 (file)
--- a/host.c
+++ b/host.c
@@ -770,7 +770,10 @@ void Host_Main(void)
                                        aborttime = realtime + 0.1;
                                }
                        }
-                       advancetime = min(advancetime, 0.1);
+                       if(slowmo.value > 0 && slowmo.value < 1)
+                               advancetime = min(advancetime, 0.1 / slowmo.value);
+                       else
+                               advancetime = min(advancetime, 0.1);
 
                        if(advancetime > 0)
                        {
@@ -972,6 +975,7 @@ char engineversion[128];
 
 qboolean sys_nostdout = false;
 
+extern void u8_Init(void);
 extern void Render_Init(void);
 extern void Mathlib_Init(void);
 extern void FS_Init(void);
@@ -1039,6 +1043,7 @@ static void Host_Init (void)
        Con_Init();
 
        // initialize various cvars that could not be initialized earlier
+       u8_Init();
        Curl_Init_Commands();
        Cmd_Init_Commands();
        Sys_Init_Commands();