]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Append data to the path when loading the screenshot entity file, as this isn't done... Mario/load_scrshot_entfile
authorMario <mario@smbclan.net>
Mon, 24 Sep 2018 12:52:02 +0000 (22:52 +1000)
committerMario <mario@smbclan.net>
Mon, 24 Sep 2018 12:52:02 +0000 (22:52 +1000)
qcsrc/server/g_world.qc

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