diff src/newgrf_text.h @ 18957:f7df1757f6d9 draft

(svn r23812) -Fix [FS#4977] (r23804): custom ActionB messages were broken
author yexo <yexo@openttd.org>
date Sun, 15 Jan 2012 19:29:49 +0000
parents 6af38106a773
children
line wrap: on
line diff
--- 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 *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);