summaryrefslogtreecommitdiff
path: root/src/strgen/strgen.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-07 18:35:59 +0000
committerrubidium <rubidium@openttd.org>2010-11-07 18:35:59 +0000
commit28ed77c35421310fdcc8c4b02ea363a8d22ef02e (patch)
tree5af19f2f81f62f4718c17b2db4a6991bdf1be63d /src/strgen/strgen.cpp
parenta89fed21c78df05b18e30dcb72cef60331d24556 (diff)
downloadopenttd-28ed77c35421310fdcc8c4b02ea363a8d22ef02e.tar.xz
(svn r21113) -Codechange: remove the amount of places where the language pack identifier magic value is
Diffstat (limited to 'src/strgen/strgen.cpp')
-rw-r--r--src/strgen/strgen.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp
index e950e5e99..6d6d1626c 100644
--- a/src/strgen/strgen.cpp
+++ b/src/strgen/strgen.cpp
@@ -946,7 +946,6 @@ static void WriteStringsH(const char *filename)
fprintf(_output_file, "\nstatic const StringID STR_LAST_STRINGID = 0x%X;\n\n", next - 1);
fprintf(_output_file,
- "static const uint LANGUAGE_PACK_IDENT = 0x474E414C; // Big Endian value for 'LANG' (LE is 0x 4C 41 4E 47)\n"
"static const uint LANGUAGE_PACK_VERSION = 0x%X;\n\n", (uint)_hash
);
@@ -1069,8 +1068,7 @@ static void WriteLangfile(const char *filename)
_lang.offsets[i] = TO_LE16(n);
}
- /* see line 655: fprintf(..."\tLANGUAGE_PACK_IDENT = 0x474E414C,...) */
- _lang.ident = TO_LE32(0x474E414C); // Big Endian value for 'LANG'
+ _lang.ident = TO_LE32(LanguagePackHeader::IDENT);
_lang.version = TO_LE32(_hash);
_lang.winlangid = TO_LE16(_lang.winlangid);