summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-11-16 22:05:33 +0000
committerpeter1138 <peter1138@openttd.org>2006-11-16 22:05:33 +0000
commit1a4f1c8177f7ee351cb0096e3456d055b97dc60a (patch)
tree4fb6c0fac873efffc85cef437baa70d50d51fdfb /openttd.c
parent40d647ddde652bb8f1c7b4215279cc82d01ca38f (diff)
downloadopenttd-1a4f1c8177f7ee351cb0096e3456d055b97dc60a.tar.xz
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/openttd.c b/openttd.c
index fceee47d2..0103c279d 100644
--- a/openttd.c
+++ b/openttd.c
@@ -52,6 +52,7 @@
#include "genworld.h"
#include "date.h"
#include "clear_map.h"
+#include "fontcache.h"
#include <stdarg.h>
@@ -432,10 +433,15 @@ int ttd_main(int argc, char *argv[])
MxInitialize(11025);
SoundInitialize("sample.cat");
+ /* Initialize FreeType */
+ InitFreeType();
+
// This must be done early, since functions use the InvalidateWindow* calls
InitWindowSystem();
GfxLoadSprites();
+ /* Initialize the unicode to sprite mapping table */
+ InitializeUnicodeGlyphMap();
LoadStringWidthTable();
DEBUG(driver, 1) ("Loading drivers...");
@@ -1526,5 +1532,9 @@ bool AfterLoadGame(void)
}
}
+ if (CheckSavegameVersion(37)) {
+ ConvertNameArray();
+ }
+
return true;
}