diff options
author | frosch <frosch@openttd.org> | 2008-03-06 14:21:10 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-03-06 14:21:10 +0000 |
commit | 08f01799160d91f19764aa4358231e966dee2dc6 (patch) | |
tree | e9df57b1434a6d9030d2a3df6b51555a23a2751e /src/openttd.cpp | |
parent | 8f556828f06650b62104f7a7845f054732623715 (diff) | |
download | openttd-08f01799160d91f19764aa4358231e966dee2dc6.tar.xz |
(svn r12347) -Feature(ette): Increase house animation frame number from 32 to 128.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 66dd0d3a5..98975a36d 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -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(); } |