]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a possible endless loop if server.cfg sets samelevel to 1
authorRudolf Polzer <divverent@alientrap.org>
Sat, 25 Feb 2012 18:35:57 +0000 (19:35 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 25 Feb 2012 18:35:57 +0000 (19:35 +0100)
qcsrc/server/g_world.qc

index 289f07fa7d51f64e304f27cad2c9cc8d395bcc11..1527f88ee2b715a821844818a5a95bf5b8acba99 100644 (file)
@@ -1251,7 +1251,7 @@ float DoNextMapOverride(float reinit)
                alreadychangedlevel = TRUE;
                return TRUE;
        }
-       if (autocvar_samelevel) // if samelevel is set, stay on same level
+       if (!reinit && autocvar_samelevel) // if samelevel is set, stay on same level
        {
                localcmd("restart\n");
                alreadychangedlevel = TRUE;