summaryrefslogtreecommitdiff
path: root/newgrf_text.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-11 16:27:46 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-11 16:27:46 +0000
commit512d49deee7fff838d6ed271e6fcf61cf489f50c (patch)
treecc6714fccc50f05852522ec700f928b4645b38f1 /newgrf_text.h
parentbd3ccca31aa6a8c73c20ed578f3316177ff62ed2 (diff)
downloadopenttd-512d49deee7fff838d6ed271e6fcf61cf489f50c.tar.xz
(svn r4832) - NewGRF: add support for original string ID to newgrf text handling. So far, this is used for vehicles when no English or American translation is provided.
Diffstat (limited to 'newgrf_text.h')
-rw-r--r--newgrf_text.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/newgrf_text.h b/newgrf_text.h
index 8d4b3f47f..2b7886c79 100644
--- a/newgrf_text.h
+++ b/newgrf_text.h
@@ -26,11 +26,12 @@ typedef struct GRFText {
typedef struct GRFTextEntry {
uint32 grfid;
uint16 stringid;
+ StringID def_string;
GRFText *textholder;
} GRFTextEntry;
-StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid, bool new_scheme, const char *text_to_add);
+StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid, bool new_scheme, const char *text_to_add, StringID def_string);
StringID GetGRFStringID(uint32 grfid, uint16 stringid);
char *GetGRFString(char *buff, uint16 stringid);
void CleanUpStrings(void);