diff options
author | tron <tron@openttd.org> | 2005-01-25 21:43:57 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-25 21:43:57 +0000 |
commit | 07cb3068ae71ce331b540426cd098c6a33ca598a (patch) | |
tree | c41ff658c058ac5448d20ea2b75c1855bd443d93 /texteff.c | |
parent | cb1f1921f65ac6ad582c7387b8629c3b5391d9d7 (diff) | |
download | openttd-07cb3068ae71ce331b540426cd098c6a33ca598a.tar.xz |
(svn r1676) Increase the size of TileIndex and TileIndexDiff to 32bits and adapt the save/load data and some other parts of the code to that change
WARNING: If i made any mistake here it WILL lead to corrupted savegames!
Diffstat (limited to 'texteff.c')
-rw-r--r-- | texteff.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -351,7 +351,11 @@ void InitializeAnimatedTiles(void) static void SaveLoad_ANIT(void) { - SlArray(_animated_tile_list, lengthof(_animated_tile_list), SLE_UINT16); + if (_sl.version < 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); } |