]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
net_slist: update types, declarations
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index a20903a9823c7d156920999aac66077ac778bbf1..924e655e200bb679da3afd9478df5ea69a21e3f2 100644 (file)
--- a/host.c
+++ b/host.c
@@ -156,7 +156,7 @@ static void Host_Quit_f(cmd_state_t *cmd)
 
 static void Host_Version_f(cmd_state_t *cmd)
 {
-       Con_Printf("Version: %s build %s\n", gamename, buildstring);
+       Con_Printf("Version: %s\n", engineversion);
 }
 
 static void Host_Framerate_c(cvar_t *var)
@@ -365,7 +365,6 @@ Host_Init
 static void Host_Init (void)
 {
        int i;
-       const char* os;
        char vabuf[1024];
 
        host.hook.ConnectLocal = NULL;
@@ -445,8 +444,7 @@ static void Host_Init (void)
        FS_Init();
 
        // construct a version string for the corner of the console
-       os = DP_OS_NAME;
-       dpsnprintf (engineversion, sizeof (engineversion), "%s %s %s", gamename, os, buildstring);
+       dpsnprintf (engineversion, sizeof (engineversion), "%s %s%s, buildstring: %s", gamename, DP_OS_NAME, cls.state == ca_dedicated ? " dedicated" : "", buildstring);
        Con_Printf("%s\n", engineversion);
 
        // initialize process nice level
@@ -503,6 +501,7 @@ static void Host_Init (void)
        {
                // put up the loading image so the user doesn't stare at a black screen...
                SCR_BeginLoadingPlaque(true);
+               S_Startup();
 #ifdef CONFIG_MENU
                MR_Init();
 #endif
@@ -644,7 +643,7 @@ static double Host_Frame(double time)
        Curl_Frame();
 
        // get new SDL events and add commands from keybindings to the cbuf
-       Sys_SendKeyEvents();
+       Sys_SDL_HandleEvents();
 
        // process console commands
        Cbuf_Frame(host.cbuf);