summaryrefslogtreecommitdiff
path: root/src/town_map.h
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
commit81174bc523ef1f98158b99cf4f8fa35f0313a3c1 (patch)
treee9df57b1434a6d9030d2a3df6b51555a23a2751e /src/town_map.h
parent068952448150b774ea369e20a13a71a3e846ee30 (diff)
downloadopenttd-81174bc523ef1f98158b99cf4f8fa35f0313a3c1.tar.xz
(svn r12347) -Feature(ette): Increase house animation frame number from 32 to 128.
Diffstat (limited to 'src/town_map.h')
-rw-r--r--src/town_map.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/town_map.h b/src/town_map.h
index 4960522ce..11fbb1318 100644
--- a/src/town_map.h
+++ b/src/town_map.h
@@ -145,7 +145,7 @@ static inline void SetLiftPosition(TileIndex t, byte pos)
static inline byte GetHouseAnimationFrame(TileIndex t)
{
assert(IsTileType(t, MP_HOUSE));
- return GB(_m[t].m6, 3, 5);
+ return GB(_m[t].m6, 2, 6) | (GB(_m[t].m3, 5, 1) << 6);
}
/**
@@ -157,7 +157,8 @@ static inline byte GetHouseAnimationFrame(TileIndex t)
static inline void SetHouseAnimationFrame(TileIndex t, byte frame)
{
assert(IsTileType(t, MP_HOUSE));
- SB(_m[t].m6, 3, 5, frame);
+ SB(_m[t].m6, 2, 6, GB(frame, 0, 6));
+ SB(_m[t].m3, 5, 1, GB(frame, 6, 1));
}
/**