]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix map screenshots not appearing even if the secondary paths have it
authorMario <mario@smbclan.net>
Fri, 27 Jan 2017 06:58:09 +0000 (16:58 +1000)
committerMario <mario@smbclan.net>
Fri, 27 Jan 2017 06:58:09 +0000 (16:58 +1000)
qcsrc/server/mapvoting.qc

index b5a6014462ea141adf7379172adf8fb9a853cd2c..a8e2b4cecf08161f0af704d78478613fdbed47a9 100644 (file)
@@ -180,7 +180,7 @@ void MapVote_AddVotable(string nextMap, float isSuggestion)
        pakfile = string_null;
        for(i = 0; i < mapvote_screenshot_dirs_count; ++i)
        {
-               mapfile = strcat(mapvote_screenshot_dirs[i], "/", mapvote_maps[i]);
+               mapfile = strcat(mapvote_screenshot_dirs[i], "/", nextMap);
                pakfile = whichpack(strcat(mapfile, ".tga"));
                if(pakfile == "")
                        pakfile = whichpack(strcat(mapfile, ".jpg"));