projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1e8a033
)
Fix map screenshots not appearing even if the secondary paths have it
author
Mario <mario@smbclan.net>
Fri, 27 Jan 2017 06:58:09 +0000
(16:58 +1000)
committer
Mario <mario@smbclan.net>
Fri, 27 Jan 2017 06:58:09 +0000
(16:58 +1000)
qcsrc/server/mapvoting.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/mapvoting.qc
b/qcsrc/server/mapvoting.qc
index b5a6014462ea141adf7379172adf8fb9a853cd2c..a8e2b4cecf08161f0af704d78478613fdbed47a9 100644
(file)
--- 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)
{
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"));
pakfile = whichpack(strcat(mapfile, ".tga"));
if(pakfile == "")
pakfile = whichpack(strcat(mapfile, ".jpg"));