summaryrefslogtreecommitdiff
path: root/src/string_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-18 13:12:57 +0000
committerrubidium <rubidium@openttd.org>2009-01-18 13:12:57 +0000
commit1bc8e3f536276bf37a246f1e747cb7563c7e20dc (patch)
tree6d76af52262054593ff7eea5e0e4a6d516cc0935 /src/string_func.h
parent2ce42873d1c8f259f1bed70ace5d52ce66e5d852 (diff)
downloadopenttd-1bc8e3f536276bf37a246f1e747cb7563c7e20dc.tar.xz
(svn r15135) -Fix/Change: allow str_validate (part of receiving strings from the network) to pass newlines instead of replacing them with question marks, but only when asked to do so.
Diffstat (limited to 'src/string_func.h')
-rw-r--r--src/string_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_func.h b/src/string_func.h
index 04f752921..a8bf897a8 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);
+void str_validate(char *str, bool allow_newlines = false);
/** Scans the string for colour codes and strips them */
void str_strip_colours(char *str);