From: Mario Date: Mon, 24 Sep 2018 12:52:02 +0000 (+1000) Subject: Append data to the path when loading the screenshot entity file, as this isn't done... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f18b4eebc6a05593d67f8caa569e8d36cc6d65b3;p=xonotic%2Fxonotic-data.pk3dir.git Append data to the path when loading the screenshot entity file, as this isn't done automatically by loadfromfile --- diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 86a4e0ad2..f43463a8b 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -957,7 +957,7 @@ spawnfunc(worldspawn) WinningConditionHelper(this); // set worldstatus world_initialized = 1; - string filename = strcat(mapname, "_scrshot_ent.txt"); // doesn't support custom paths + string filename = strcat("data/", mapname, "_scrshot_ent.txt"); // doesn't support custom paths if(fexists(filename)) loadfromfile(filename); __spawnfunc_spawn_all();