summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-03-06 14:21:10 +0000
committerfrosch <frosch@openttd.org>2008-03-06 14:21:10 +0000
commit08f01799160d91f19764aa4358231e966dee2dc6 (patch)
treee9df57b1434a6d9030d2a3df6b51555a23a2751e /src/openttd.cpp
parent8f556828f06650b62104f7a7845f054732623715 (diff)
downloadopenttd-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.cpp9
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();
}