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
+2 -2
View File
@@ -487,7 +487,7 @@ void checkpings()
si->numplayers = getint(p);
si->minremain = getint(p);
getstring(text, p);
filtertext(si->map, text, FTXT__MAPNAME);
filtertext(si->map, behindpath(text), FTXT__MAPNAME);
getstring(text, p);
filtertext(si->sdesc, text, FTXT__SERVDESC);
copystring(si->description, si->sdesc);
@@ -552,7 +552,7 @@ void checkpings()
while(p.remaining())
{
getstring(text, p);
filtertext(text, text, FTXT__MAPNAME);
filtertext(text, behindpath(text), FTXT__MAPNAME);
if(*text && !p.overread())
{
text[MAXINFOLINELEN] = '\0';