summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-02 01:17:11 +0000
committerrubidium <rubidium@openttd.org>2007-03-02 01:17:11 +0000
commitea319b78f80fb970b1f394cf0853bb03c12ba475 (patch)
treeb045a4c93b01abf5447be66d16bd305c4e9dcb4f /src/openttd.cpp
parent89d8f5f7b5376850e8d2f0c1b72253d012ed9bed (diff)
downloadopenttd-ea319b78f80fb970b1f394cf0853bb03c12ba475.tar.xz
(svn r8969) -Codechange: rework of the player face bits.
- introduce a new format (with backward compatability) that is more clear and needs a much simpler face drawer - replace tons of ifs/switches/magic numbers by table lookups
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index a80ac44b3..c1fb0c021 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -55,6 +55,7 @@
#include "clear_map.h"
#include "fontcache.h"
#include "newgrf_config.h"
+#include "player_face.h"
#include "bridge_map.h"
#include "clear_map.h"
@@ -1817,6 +1818,8 @@ bool AfterLoadGame(void)
}
}
+ if (CheckSavegameVersion(49)) FOR_ALL_PLAYERS(p) p->face = ConvertFromOldPlayerFace(p->face);
+
return true;
}