summaryrefslogtreecommitdiff
path: root/src/newgrf_text.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-29 17:09:00 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-29 17:09:00 +0000
commitfb8973c64ae4f1fe0789f4968a2f90b068d6ee07 (patch)
tree36668cb43b7188c31198678a500d50939212b8c1 /src/newgrf_text.h
parenta736e8500a8cb902ad22fffea08e83b18b935d90 (diff)
downloadopenttd-fb8973c64ae4f1fe0789f4968a2f90b068d6ee07.tar.xz
(svn r12015) -Fix [FS#1716] (Revert r11422): Patch in FS#1430 avoided instead of fixed the problem. GetStringWithArgs() discards information that SCC_GENDER_LIST needs to work. Now use pointers to retrieve GRF strings, so that GetStringPtr() will work correctly. This is advantageous as now no buffer copy is made when using all GRF strings.
Diffstat (limited to 'src/newgrf_text.h')
-rw-r--r--src/newgrf_text.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_text.h b/src/newgrf_text.h
index 9f77036d8..033d927b9 100644
--- a/src/newgrf_text.h
+++ b/src/newgrf_text.h
@@ -8,7 +8,7 @@
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, const char* last);
+const char *GetGRFStringPtr(uint16 stringid);
void CleanUpStrings();
void SetCurrentGrfLangID(const char *iso_name);
char *TranslateTTDPatchCodes(const char *str);