]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Load entities from the screenshot ent text file on map start
authorMario <mario@smbclan.net>
Fri, 21 Sep 2018 22:57:48 +0000 (08:57 +1000)
committerMario <mario@smbclan.net>
Fri, 21 Sep 2018 22:57:48 +0000 (08:57 +1000)
qcsrc/server/g_world.qc

index 28aa46cc43ddfa4c9de5f80fc2fb1ddbeca28dc5..86a4e0ad21011576565fabfca5ba6df9c78f24b4 100644 (file)
@@ -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();
 }