summaryrefslogtreecommitdiff
path: root/src/newgrf_text.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2012-01-15 19:29:49 +0000
committeryexo <yexo@openttd.org>2012-01-15 19:29:49 +0000
commitfab78a7bf2a900bc64de69a7dcdb4e558e2a1824 (patch)
treeef190938984d1ba6d560c86b916cecda76fd4e03 /src/newgrf_text.h
parentc42e30927d497e52efab09caadcf1e8e624962d9 (diff)
downloadopenttd-fab78a7bf2a900bc64de69a7dcdb4e558e2a1824.tar.xz
(svn r23812) -Fix [FS#4977] (r23804): custom ActionB messages were broken
Diffstat (limited to 'src/newgrf_text.h')
-rw-r--r--src/newgrf_text.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_text.h b/src/newgrf_text.h
index 338c61c7b..081e7e36c 100644
--- a/src/newgrf_text.h
+++ b/src/newgrf_text.h
@@ -15,6 +15,7 @@
#include "string_type.h"
#include "strings_type.h"
#include "core/smallvec_type.hpp"
+#include "table/control_codes.h"
/** This character, the thorn ('รพ'), indicates a unicode string to NFO. */
static const WChar NFO_UTF8_IDENTIFIER = 0x00DE;
@@ -25,7 +26,7 @@ const char *GetGRFStringFromGRFText(const struct GRFText *text);
const char *GetGRFStringPtr(uint16 stringid);
void CleanUpStrings();
void SetCurrentGrfLangID(byte language_id);
-char *TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_newlines, const char *str, int *olen = NULL);
+char *TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_newlines, const char *str, int *olen = NULL, StringControlCode byte80 = SCC_NEWGRF_PRINT_WORD_STRING_ID);
struct GRFText *DuplicateGRFText(struct GRFText *orig);
void AddGRFTextToList(struct GRFText **list, struct GRFText *text_to_add);
void AddGRFTextToList(struct GRFText **list, byte langid, uint32 grfid, bool allow_newlines, const char *text_to_add);