]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
host: Move Host_GetConsoleCommands and rename it for consistency. Add comment
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index eee139525819cee72b4be7ee45cfaaae4d55e48e..5c50ba791499266d80394d0f7392da7faf990fa0 100644 (file)
--- a/host.c
+++ b/host.c
@@ -301,26 +301,6 @@ void Host_LoadConfig_f(cmd_state_t *cmd)
 
 //============================================================================
 
-/*
-===================
-Host_GetConsoleCommands
-
-Add them exactly as if they had been typed at the console
-===================
-*/
-static void Host_GetConsoleCommands (void)
-{
-       char *line;
-
-       while ((line = Sys_ConsoleInput()))
-       {
-               if (cls.state == ca_dedicated)
-                       Cbuf_AddText(cmd_server, line);
-               else
-                       Cbuf_AddText(cmd_client, line);
-       }
-}
-
 /*
 ==================
 Host_TimeReport
@@ -355,18 +335,12 @@ double Host_Frame(double time)
 
        Log_DestBuffer_Flush();
 
+       // Run any downloads
        Curl_Frame();
 
-       // check for commands typed to the host
-       Host_GetConsoleCommands();
-
-//     R_TimeReport("preconsole");
-
        // process console commands
        Cbuf_Frame(host.cbuf);
 
-//     R_TimeReport("console");
-
        R_TimeReport("---");
 
        sv_wait = SV_Frame(time);