]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
significant optimizations to the progs interpreter, changed the runaway loop counter...
[xonotic/darkplaces.git] / host_cmd.c
index 458ad9da9ee2c8d04b07eeac2b8a3047bd7fb963..8bbaceadecc2a378eeca2ca7bdd958f04049d150 100644 (file)
@@ -271,9 +271,8 @@ void Host_Map_f (void)
        CL_Disconnect ();
        Host_ShutdownServer();
 
-       // remove console or menu
+       // remove menu
        key_dest = key_game;
-       key_consoleactive = 0;
 
        svs.serverflags = 0;                    // haven't completed an episode yet
        allowcheats = sv_cheats.integer != 0;
@@ -320,11 +319,6 @@ void Host_Changelevel_f (void)
                Con_Print("changelevel <levelname> : continue game on a new level\n");
                return;
        }
-       if (cls.demoplayback)
-       {
-               Con_Print("Only the server may changelevel\n");
-               return;
-       }
        // HACKHACKHACK
        if (!sv.active) {
                Host_Map_f();
@@ -333,9 +327,8 @@ void Host_Changelevel_f (void)
        if (cmd_source != src_command)
                return;
 
-       // remove console or menu
+       // remove menu
        key_dest = key_game;
-       key_consoleactive = 0;
 
        SV_VM_Begin();
        SV_SaveSpawnparms ();
@@ -371,9 +364,8 @@ void Host_Restart_f (void)
        if (cmd_source != src_command)
                return;
 
-       // remove console or menu
+       // remove menu
        key_dest = key_game;
-       key_consoleactive = 0;
 
        allowcheats = sv_cheats.integer != 0;
        strcpy(mapname, sv.name);