summaryrefslogtreecommitdiff
path: root/string.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-11-16 17:41:24 +0000
committerDarkvater <darkvater@openttd.org>2006-11-16 17:41:24 +0000
commitedcbb105656514e6b422d2d5e04f6dcb2e30459b (patch)
tree7c2185201a93f3c8c674dabd72895508d9d7290a /string.h
parent81b84c909189d05d8f6bc08218d1f4208fdeb99e (diff)
downloadopenttd-edcbb105656514e6b422d2d5e04f6dcb2e30459b.tar.xz
(svn r7172) -Fix [r6931]: The console showed '?' characters instead of colours. Now strip all
colours for the console. It's a bit magicky (magic numbers) but UTF8 fixes that soon.
Diffstat (limited to 'string.h')
-rw-r--r--string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/string.h b/string.h
index 781586515..f86854a88 100644
--- a/string.h
+++ b/string.h
@@ -29,6 +29,9 @@ char* CDECL str_fmt(const char* str, ...);
* replaces them with a question mark '?' */
void str_validate(char *str);
+/** Scans the string for colour codes and strips them */
+void str_strip_colours(char *str);
+
/**
* Valid filter types for IsValidAsciiChar.
*/