From: Mario Date: Fri, 21 Sep 2018 22:57:48 +0000 (+1000) Subject: Load entities from the screenshot ent text file on map start X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=10216bc1576f05b564b78273a1f5b8591b897270;p=xonotic%2Fxonotic-data.pk3dir.git Load entities from the screenshot ent text file on map start --- diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 28aa46cc4..86a4e0ad2 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -957,6 +957,9 @@ spawnfunc(worldspawn) WinningConditionHelper(this); // set worldstatus world_initialized = 1; + string filename = strcat(mapname, "_scrshot_ent.txt"); // doesn't support custom paths + if(fexists(filename)) + loadfromfile(filename); __spawnfunc_spawn_all(); }