menu-dirlist fix (bug found by Gibstick) and menu-footer line-wrapping added

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5558 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2010-08-07 22:54:39 +00:00
parent 807f9e06dc
commit 1a1a9e3aa8
3 changed files with 66 additions and 8 deletions
+3 -2
View File
@@ -264,9 +264,10 @@ void renderscores(void *menu, bool init)
// but we might want to consider wrapping the bottom-line to accomodate longer descriptions - to a limit.
string text;
filtertext(text, s->sdesc);
for(char *p = text; (p = strchr(p, '\"')); *p++ = ' ');
text[30] = '\0'; // serverbrowser has less room - +8 chars here - 2010AUG03 - seems it was too much, falling back to 30 (for now): TODO get real width of menu as reference-width.
//for(char *p = text; (p = strchr(p, '\"')); *p++ = ' ');
//text[30] = '\0'; // serverbrowser has less room - +8 chars here - 2010AUG03 - seems it was too much, falling back to 30 (for now): TODO get real width of menu as reference-width. FIXME: cutoff
concatformatstring(serverline, "%s:%d %s", s->name, s->port, text);
//printf("SERVERLINE: %s\n", serverline);
}
}