summaryrefslogtreecommitdiff
path: root/src/newgrf_text.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2017-02-26 19:41:30 +0000
committerfrosch <frosch@openttd.org>2017-02-26 19:41:30 +0000
commit2bb80d280cc39684e71be6c4c2db5bf500e10b1c (patch)
tree2e5a9bb6dbd454860fa195da5dc537009a57d572 /src/newgrf_text.cpp
parentfc4c4d080c5d95d92354cefac4a05082fc417c83 (diff)
downloadopenttd-2bb80d280cc39684e71be6c4c2db5bf500e10b1c.tar.xz
(svn r27758) -Change: Increase the maximum number of GameScript texts to 64k, and NewGRF texts to 512k.
Diffstat (limited to 'src/newgrf_text.cpp')
-rw-r--r--src/newgrf_text.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp
index 279bd094c..e4b3c382b 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -156,7 +156,7 @@ struct GRFTextEntry {
static uint _num_grf_texts = 0;
-static GRFTextEntry _grf_text[TAB_SIZE * 3];
+static GRFTextEntry _grf_text[TAB_SIZE_NEWGRF];
static byte _currentLangID = GRFLX_ENGLISH; ///< by default, english is used.
/**
@@ -693,7 +693,7 @@ StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid_to_add, bool ne
grfmsg(3, "Added 0x%X: grfid %08X string 0x%X lang 0x%X string '%s'", id, grfid, stringid, newtext->langid, newtext->text);
- return MakeStringID(TEXT_TAB_NEWGRF1, 0) + id; // Id reaches across multiple tabs
+ return MakeStringID(TEXT_TAB_NEWGRF_START, id);
}
/**
@@ -703,7 +703,7 @@ StringID GetGRFStringID(uint32 grfid, uint16 stringid)
{
for (uint id = 0; id < _num_grf_texts; id++) {
if (_grf_text[id].grfid == grfid && _grf_text[id].stringid == stringid) {
- return MakeStringID(TEXT_TAB_NEWGRF1, 0) + id; // Id reaches across multiple tabs
+ return MakeStringID(TEXT_TAB_NEWGRF_START, id);
}
}