(svn r12347) -Feature(ette): Increase house animation frame number from 32 to 128.

This commit is contained in:
frosch
2008-03-06 14:21:10 +00:00
parent 8f556828f0
commit 08f0179916
5 changed files with 17 additions and 7 deletions

View File

@@ -2431,6 +2431,15 @@ bool AfterLoadGame()
}
}
if (CheckSavegameVersion(91)) {
/* Increase HouseAnimationFrame from 5 to 7 bits */
for (TileIndex t = 0; t < map_size; t++) {
if (IsTileType(t, MP_HOUSE) && GetHouseType(t) >= NEW_HOUSE_OFFSET) {
SetHouseAnimationFrame(t, GB(_m[t].m6, 3, 5));
}
}
}
return InitializeWindowsAndCaches();
}