From f014b8f98b471d54b1caafd3a41c579a6e60bd96 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 5 Mar 2010 03:41:48 +0000 Subject: [PATCH] - Fixed: FFont::StringWidth() counted the ']' character of a named color escape sequence in its width calculation. SVN r2190 (trunk) --- src/v_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v_text.cpp b/src/v_text.cpp index 6cba83c9c9..715e060935 100644 --- a/src/v_text.cpp +++ b/src/v_text.cpp @@ -276,7 +276,7 @@ int FFont::StringWidth (const BYTE *string) const ++string; } } - else if (*string != '\0') + if (*string != '\0') { ++string; }