clean up map changes a little more
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 Oct 2002 15:07:48 +0000 (15:07 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 Oct 2002 15:07:48 +0000 (15:07 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2510 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index 0a3f978..b026fa8 100644 (file)
@@ -1598,11 +1598,9 @@ void Host_PerformSpawnServerAndLoadGame(void)
        if (sv_loadgame[0])
                Host_PerformLoadGame(sv_loadgame);
        else if (sv_spawnmap[0])
-       {
                SV_SpawnServer(sv_spawnmap);
-               if (sv.active && cls.state == ca_disconnected)
-                       Cmd_ExecuteString ("connect local", src_command);
-       }
+       if (sv.active && cls.state == ca_disconnected)
+               Cmd_ExecuteString ("connect local", src_command);
        sv_loadgame[0] = 0;
        sv_spawnmap[0] = 0;
 }