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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user