From 34e688e5aa0512ba661d8f67e9e96467c2c05dc2 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Sun, 6 Jan 2013 15:32:39 +0000 Subject: [PATCH] scoreboard bug fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7037 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/scoreboard.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/src/scoreboard.cpp b/source/src/scoreboard.cpp index 7432d5a3..afbf91a1 100644 --- a/source/src/scoreboard.cpp +++ b/source/src/scoreboard.cpp @@ -53,9 +53,6 @@ struct sline sline() : bgcolor(NULL), textcolor(0) { copystring(s, ""); } - // FIXME : type and priority are a bit redundant - // but getting rid of "type" might cause issues under specific conditions - // (if two columns share the same priority) void addcol(int priority, const char *format = NULL, ...) { if(priority < 0) return; @@ -77,7 +74,7 @@ struct sline loopv(cols) { if(i > 0) concatstring(s, "\t"); - concatstring(s, cols[i].val); + if(cols[i].val) concatstring(s, cols[i].val); } } return s;