fix: keep path and uppercase in demo filenames

votes now distinguish between demo and map votecalls and filter the
filename appropriately

also: remove paths from map names cleanly
This commit is contained in:
ac-stef
2014-05-25 00:35:22 +02:00
parent b246e6e153
commit 29dd50bde6
6 changed files with 17 additions and 11 deletions
+1 -2
View File
@@ -1280,9 +1280,8 @@ void gmenu::init()
}
}
defformatstring(fullname)("%s%s%s", dirlist->dir[0]?dirlist->dir+diroffset:"", dirlist->dir[0]?"/":"", f);
defformatstring(caction)("map %s", fullname);
defformatstring(title)("%s", f);
items.add(new mitemmapload(this, newstring(fullname), newstring(title), newstring(caction), NULL, NULL, NULL));
items.add(new mitemmapload(this, newstring(fullname), newstring(title), newstring(dirlist->action), NULL, NULL, NULL));
}
else items.add(new mitemtext(this, f, newstring(dirlist->action), NULL, NULL, d));
}