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 | 6d6e2232ead8bd13b7e302f60793809f0e39ac0d (patch) | |
tree | 94d8b8fbeab32306eb82d2bdbbf2605b3372c849 /src/string_func.h | |
parent | c6bc3b869224212bf3556f44aec36052d2d7d0db (diff) | |
download | openttd-6d6e2232ead8bd13b7e302f60793809f0e39ac0d.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); |