diff options
author | frosch <frosch@openttd.org> | 2017-02-26 19:40:53 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2017-02-26 19:40:53 +0000 |
commit | a56e2bccd0bbeac71e3fa4c406ae5ec5f8e578a8 (patch) | |
tree | 921d348a0938d086c0b7036bedc1e84df7264316 /src/newgrf_text.cpp | |
parent | f4da8ece0ce02d6fe3dac6f8adc147e8a3d095a3 (diff) | |
download | openttd-a56e2bccd0bbeac71e3fa4c406ae5ec5f8e578a8.tar.xz |
(svn r27756) -Codechange: Add StringTab enum
Diffstat (limited to 'src/newgrf_text.cpp')
-rw-r--r-- | src/newgrf_text.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 914d0ee1a..279bd094c 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -35,8 +35,6 @@ #include "safeguards.h" -#define GRFTAB 28 - /** * Explains the newgrf shift bit positioning. * the grf base will not be used in order to find the string, but rather for @@ -695,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(GRFTAB, 0) + id; // Id reaches across multiple tabs + return MakeStringID(TEXT_TAB_NEWGRF1, 0) + id; // Id reaches across multiple tabs } /** @@ -705,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(GRFTAB, 0) + id; // Id reaches across multiple tabs + return MakeStringID(TEXT_TAB_NEWGRF1, 0) + id; // Id reaches across multiple tabs } } |