Codechange: Allow using more than 65536 NewGRF string IDs.
NewGRF string allocation allowed up to 524288 strings, however stringid was passed as uint16_t which limits to 2^16.
(cherry picked from commit e4613fc04c)
This commit is contained in:
committed by
Jonathan G Rennison
parent
2178ff1e80
commit
7cc1ed9594
@@ -37,7 +37,7 @@ const char *GetGRFStringFromGRFText(const GRFTextList &text_list);
|
||||
const char *GetGRFStringFromGRFText(const GRFTextWrapper &text);
|
||||
const char *GetDefaultLangGRFStringFromGRFText(const GRFTextList &text_list);
|
||||
const char *GetDefaultLangGRFStringFromGRFText(const GRFTextWrapper &text);
|
||||
const char *GetGRFStringPtr(uint16 stringid);
|
||||
const char *GetGRFStringPtr(uint32 stringid);
|
||||
void CleanUpStrings();
|
||||
void SetCurrentGrfLangID(byte language_id);
|
||||
std::string TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_newlines, const std::string &str, StringControlCode byte80 = SCC_NEWGRF_PRINT_WORD_STRING_ID);
|
||||
|
||||
Reference in New Issue
Block a user