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=refs%2Fheads%2FMario%2Fload_scrshot_entfile;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();