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 b5a6014..a8e2b4c 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"));