diff options
author | rubidium <rubidium@openttd.org> | 2013-06-27 19:57:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-06-27 19:57:41 +0000 |
commit | 19eca468fcfbd8f15cd61cfd54a6971c0cbd3039 (patch) | |
tree | 933e198011751ed6862511f3835453e49307a835 /src/script/api/script_text.hpp | |
parent | 8463335b009a95636a40dbd5b3f7400a98b76870 (diff) | |
download | openttd-19eca468fcfbd8f15cd61cfd54a6971c0cbd3039.tar.xz |
(svn r25488) -Fix [FS#5613]: do not send encoded texts to names, but decode them into a plain C string and then pass them on
Diffstat (limited to 'src/script/api/script_text.hpp')
-rw-r--r-- | src/script/api/script_text.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/script/api/script_text.hpp b/src/script/api/script_text.hpp index 6dd022bb7..9b75e21c5 100644 --- a/src/script/api/script_text.hpp +++ b/src/script/api/script_text.hpp @@ -27,6 +27,13 @@ public: * @api -all */ virtual const char *GetEncodedText() = 0; + + /** + * Convert a #ScriptText into a decoded normal string. + * @return A string (in a static buffer), or NULL. + * @api -all + */ + const char *GetDecodedText(); }; /** |