]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 fd2b3a57d43d4fd39683e82141e83940055ba510..6c244d459975ba2c5d266e0f669014fa5f6376ad 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 17bade245742e43ff7ebb7b93bd3901a767811a1..f76abd994349bdf494181a8a83fb1f44b5dc322e 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)