From 9655644f8a80b16d9cccefb39307f9f2035c37cd Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 25 Feb 2012 19:35:57 +0100 Subject: [PATCH] fix a possible endless loop if server.cfg sets samelevel to 1 --- qcsrc/server/g_world.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 289f07fa7..1527f88ee 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -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; -- 2.39.2