From 55423efb0687d937256d17ad267fce67ed9bf5cf Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 30 May 2005 22:16:05 +0000 Subject: (svn r2387) - CodeChange: made the saveload code more readable and also removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big. - Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types. --- texteff.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'texteff.c') diff --git a/texteff.c b/texteff.c index fdf6c5640..b418b55de 100644 --- a/texteff.c +++ b/texteff.c @@ -368,10 +368,9 @@ void InitializeAnimatedTiles(void) static void SaveLoad_ANIT(void) { - if (_sl.version < 6) - SlArray(_animated_tile_list, lengthof(_animated_tile_list), - SLE_FILE_U16 | SLE_VAR_U32); - else + 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