moved the map startup for -listen and -dedicated servers from startdemos to just...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 Oct 2004 07:50:27 +0000 (07:50 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 Oct 2004 07:50:27 +0000 (07:50 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4712 d7cf8633-e32d-0410-b094-e92efae38249

host.c
host_cmd.c

diff --git a/host.c b/host.c
index fd2b3a5..6c244d4 100644 (file)
--- a/host.c
+++ b/host.c
@@ -911,6 +911,16 @@ void Host_Init (void)
        else
                Cbuf_InsertText("exec quake.rc\n");
 
+       if (!sv.active && (cls.state == ca_dedicated || COM_CheckParm("-listen")))
+       {
+               if (gamemode == GAME_TRANSFUSION)
+                       Cbuf_InsertText ("map bb1\n");
+               else if (gamemode == GAME_NEXUIZ)
+                       Cbuf_InsertText ("map nexdm01\n");
+               else
+                       Cbuf_InsertText ("map start\n");
+       }
+
        // check for special benchmark mode
 // COMMANDLINEOPTION: Client: -benchmark <demoname> runs a timedemo and quits, results of any timedemo can be found in gamedir/benchmark.log (for example id1/benchmark.log)
        i = COM_CheckParm("-benchmark");
index 17bade2..f76abd9 100644 (file)
@@ -1670,16 +1670,7 @@ void Host_Startdemos_f (void)
        int             i, c;
 
        if (cls.state == ca_dedicated || COM_CheckParm("-listen"))
-       {
-               if (!sv.active)
-               {
-                       if (gamemode == GAME_TRANSFUSION)
-                               Cbuf_AddText ("map bb1\n");
-                       else
-                               Cbuf_AddText ("map start\n");
-               }
                return;
-       }
 
        c = Cmd_Argc() - 1;
        if (c > MAX_DEMOS)