diff options
author | glx <glx@openttd.org> | 2009-02-02 13:46:26 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2009-02-02 13:46:26 +0000 |
commit | 47a61fb10c3af0f28a698f6cf81f34c22e56d6b2 (patch) | |
tree | 94d8b8fbeab32306eb82d2bdbbf2605b3372c849 /src/string_func.h | |
parent | a2b3d77df8a9a03a5e8fed3171bb2ad28f0f4782 (diff) | |
download | openttd-47a61fb10c3af0f28a698f6cf81f34c22e56d6b2.tar.xz |
(svn r15316) -Fix [NoAI]: ignore unprintable chars when returning a string to squirrel
Diffstat (limited to 'src/string_func.h')
-rw-r--r-- | src/string_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_func.h b/src/string_func.h index a8bf897a8..bf7159751 100644 --- a/src/string_func.h +++ b/src/string_func.h @@ -95,7 +95,7 @@ char *CDECL str_fmt(const char *str, ...); /** Scans the string for valid characters and if it finds invalid ones, * replaces them with a question mark '?' */ -void str_validate(char *str, bool allow_newlines = false); +void str_validate(char *str, bool allow_newlines = false, bool ignore = false); /** Scans the string for colour codes and strips them */ void str_strip_colours(char *str); |