From aab91d287ae5830bd89c92df102692de5af8e821 Mon Sep 17 00:00:00 2001 From: belugas Date: Fri, 21 Apr 2006 03:00:20 +0000 Subject: (svn r4493) Newgrf : Action 04. Beginning of implementation. Some TODOs left, but the core is there. Thanks to Peter1138 for code, advice and patience And to Patchman for letting us define a lot of langids :) --- strings.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'strings.c') diff --git a/strings.c b/strings.c index 5a16e2a8c..022a4180a 100644 --- a/strings.c +++ b/strings.c @@ -16,6 +16,7 @@ #include "waypoint.h" #include "industry.h" #include "variables.h" +#include "newgrf_text.h" char _userstring[128]; @@ -178,6 +179,15 @@ char *GetStringWithArgs(char *buffr, uint string, const int32 *argv) case 15: return GetName(index, buffr); + case 28: + return GetGRFString(buffr, index); + + case 29: + return GetGRFString(buffr, index + 0x800); + + case 30: + return GetGRFString(buffr, index + 0x1000); + case 31: // dynamic strings. These are NOT to be passed through the formatter, // but passed through verbatim. @@ -1153,6 +1163,7 @@ bool ReadLanguagePack(int lang_index) ttd_strlcpy(_dynlang.curr_file, _dynlang.ent[lang_index].file, sizeof(_dynlang.curr_file)); _dynlang.curr = lang_index; + SetCurrentGrfLangID(_langpack->isocode); return true; } -- cgit v1.2.3-54-g00ecf