From 565e3d5d3602a52f5228f6a9e4e31d098ff11a8c Mon Sep 17 00:00:00 2001 From: flowtron Date: Tue, 3 Aug 2010 18:34:38 +0000 Subject: [PATCH] -8 chars in scoreboard for servertitle - TODO: get _real_ menuwidth as reference git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5537 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/scoreboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/scoreboard.cpp b/source/src/scoreboard.cpp index 2bc1dd85..9cd83b52 100644 --- a/source/src/scoreboard.cpp +++ b/source/src/scoreboard.cpp @@ -265,7 +265,7 @@ void renderscores(void *menu, bool init) string text; filtertext(text, s->sdesc); for(char *p = text; (p = strchr(p, '\"')); *p++ = ' '); - text[38] = '\0'; // serverbrowser has less room - +8 chars here + 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. concatformatstring(serverline, "%s:%d %s", s->name, s->port, text); } }