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 | 81174bc523ef1f98158b99cf4f8fa35f0313a3c1 (patch) | |
tree | e9df57b1434a6d9030d2a3df6b51555a23a2751e /src/openttd.cpp | |
parent | 068952448150b774ea369e20a13a71a3e846ee30 (diff) | |
download | openttd-81174bc523ef1f98158b99cf4f8fa35f0313a3c1.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(); } |