]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
moved the map startup for -listen and -dedicated servers from startdemos to just...
[xonotic/darkplaces.git] / host.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");