summaryrefslogtreecommitdiff
path: root/texteff.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-11-22 19:33:29 +0000
committertruelight <truelight@openttd.org>2005-11-22 19:33:29 +0000
commit898bb915ac6ac2be3d2ea112e536f7ea602baec4 (patch)
tree8f15e8f51a08918d4f10f865ca89248468c85aab /texteff.c
parente4cb8ed4570f53fc26367371e8d680882f0e70e6 (diff)
downloadopenttd-898bb915ac6ac2be3d2ea112e536f7ea602baec4.tar.xz
(svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed 'major' version to just: version.
Diffstat (limited to 'texteff.c')
-rw-r--r--texteff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/texteff.c b/texteff.c
index fb59ff634..34c1d4641 100644
--- a/texteff.c
+++ b/texteff.c
@@ -364,7 +364,8 @@ void InitializeAnimatedTiles(void)
static void SaveLoad_ANIT(void)
{
- if (_sl_version < 6) {
+ // In pre version 6, we has 16bit per tile, now we have 32bit per tile, convert it ;)
+ if (CheckSavegameVersion(6)) {
SlArray(_animated_tile_list, lengthof(_animated_tile_list), SLE_FILE_U16 | SLE_VAR_U32);
} else {
SlArray(_animated_tile_list, lengthof(_animated_tile_list), SLE_UINT32);