]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
fix a crash in D3D9 with r_sky 0
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index feafe69a7d3c63d167a8a526d8b2f0a0890f05e4..1b776d7b5e761da4e48191033c170b0496debdc2 100644 (file)
--- a/host.c
+++ b/host.c
@@ -189,7 +189,7 @@ void Host_ServerOptions (void)
                else
                {
                        // default players in some games, singleplayer in most
-                       if (gamemode != GAME_GOODVSBAD2 && gamemode != GAME_NEXUIZ && gamemode != GAME_BATTLEMECH)
+                       if (gamemode != GAME_GOODVSBAD2 && gamemode != GAME_NEXUIZ && gamemode != GAME_XONOTIC && gamemode != GAME_BATTLEMECH)
                                svs.maxclients = 1;
                }
        }
@@ -210,6 +210,7 @@ Host_InitLocal
 void Host_SaveConfig_f(void);
 void Host_LoadConfig_f(void);
 extern cvar_t sv_writepicture_quality;
+extern cvar_t r_texture_jpeg_fastpicmip;
 static void Host_InitLocal (void)
 {
        Cmd_AddCommand("saveconfig", Host_SaveConfig_f, "save settings to config.cfg (or a specified filename) immediately (also automatic when quitting)");
@@ -239,6 +240,7 @@ static void Host_InitLocal (void)
        Cvar_RegisterVariable (&timeformat);
 
        Cvar_RegisterVariable (&sv_writepicture_quality);
+       Cvar_RegisterVariable (&r_texture_jpeg_fastpicmip);
 }
 
 
@@ -1120,6 +1122,7 @@ static void Host_Init (void)
        Mod_Init();
        World_Init();
        SV_Init();
+       V_Init(); // some cvars needed by server player physics (cl_rollangle etc)
        Host_InitCommands();
        Host_InitLocal();
        Host_ServerOptions();
@@ -1139,7 +1142,6 @@ static void Host_Init (void)
                S_Init();
                CDAudio_Init();
                Key_Init();
-               V_Init();
                CL_Init();
        }