From: Rudolf Polzer Date: Mon, 5 Aug 2013 08:04:11 +0000 (+0200) Subject: fix *-serverpackage.txt. Why did we add this anyway BTW? What was wrong with .serverp... X-Git-Tag: xonotic-v0.8.0~371 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e6bb286fd1beb18b27fd5c73da319977b4b7b78c;p=xonotic%2Fxonotic-data.pk3dir.git fix *-serverpackage.txt. Why did we add this anyway BTW? What was wrong with .serverpackage? --- diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 3043a3000..7146c2fc7 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -887,7 +887,7 @@ void spawnfunc_worldspawn (void) s = ""; n = tokenize_console(cvar_string("sv_curl_serverpackages")); for(i = 0; i < n; ++i) - if(substring(argv(i), -14, -1) != "-serverpackage.txt") + if(substring(argv(i), -18, -1) != "-serverpackage.txt") if(substring(argv(i), -14, -1) != ".serverpackage") // OLD legacy s = strcat(s, " ", argv(i)); fd = search_begin("*-serverpackage.txt", TRUE, FALSE);