summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c11
1 files changed, 11 insertions, 0 deletions
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;
}