(svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed 'major' version to just: version.

This commit is contained in:
truelight
2005-11-22 19:33:29 +00:00
parent 6a4ba84320
commit 4845ff063b
8 changed files with 79 additions and 52 deletions

View File

@@ -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);