From 993a106679e4e682d9028fe44d1e5f9f1f178506 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 25 Jan 2005 21:43:57 +0000 Subject: (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! --- texteff.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'texteff.c') diff --git a/texteff.c b/texteff.c index 408246b83..3e5f6fc89 100644 --- a/texteff.c +++ b/texteff.c @@ -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); } -- cgit v1.2.3-54-g00ecf