From: Mario Date: Fri, 27 Jan 2017 06:58:09 +0000 (+1000) Subject: Fix map screenshots not appearing even if the secondary paths have it X-Git-Tag: xonotic-v0.8.2~271 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5a3136439f724386bd8b508da7ced52e62d1861f;p=xonotic%2Fxonotic-data.pk3dir.git Fix map screenshots not appearing even if the secondary paths have it --- diff --git a/qcsrc/server/mapvoting.qc b/qcsrc/server/mapvoting.qc index b5a601446..a8e2b4cec 100644 --- a/qcsrc/server/mapvoting.qc +++ b/qcsrc/server/mapvoting.qc @@ -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"));