From 94d390eac49841f350a357dbfc7e0904276c9dd9 Mon Sep 17 00:00:00 2001 From: maedhros Date: Tue, 12 Jun 2007 13:22:14 +0000 Subject: (svn r10114) -Fix: Only load newgrf error messages if the language matches the current language. Since only one error can be loaded anyway, if the language didn't match you'd get "Undefined string". Also since we're only loading one language there's no need to use AddGRFString any more. --- src/newgrf_text.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/newgrf_text.h') diff --git a/src/newgrf_text.h b/src/newgrf_text.h index 272b78422..ec0fcdc91 100644 --- a/src/newgrf_text.h +++ b/src/newgrf_text.h @@ -13,4 +13,6 @@ void CleanUpStrings(); void SetCurrentGrfLangID(const char *iso_name); char *TranslateTTDPatchCodes(const char *str); +bool CheckGrfLangID(byte lang_id, byte grf_version); + #endif /* NEWGRF_TEXT_H */ -- cgit v1.2.3-54-g00ecf