diff options
author | rubidium <rubidium@openttd.org> | 2010-08-26 14:45:45 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-26 14:45:45 +0000 |
commit | 4efa2efdbba6f08b2ee4ca3aacb2aeb792429af4 (patch) | |
tree | 60ad5b19a5b1e1131aee081bdeea8f4d6a83af1e /src/town_map.h | |
parent | 7f86dcca90b20241a210dd5f088e249a902f725c (diff) | |
download | openttd-4efa2efdbba6f08b2ee4ca3aacb2aeb792429af4.tar.xz |
(svn r20622) -Codechange: unify [GS]et[Statation|Object|Industry|House]AnimationFrame
Diffstat (limited to 'src/town_map.h')
-rw-r--r-- | src/town_map.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/town_map.h b/src/town_map.h index 41f1e96e4..eb7ddb8d2 100644 --- a/src/town_map.h +++ b/src/town_map.h @@ -140,30 +140,6 @@ static inline void SetLiftPosition(TileIndex t, byte pos) } /** - * Get the current animation frame for this house - * @param t the tile - * @pre IsTileType(t, MP_HOUSE) - * @return frame number - */ -static inline byte GetHouseAnimationFrame(TileIndex t) -{ - assert(IsTileType(t, MP_HOUSE)); - return _me[t].m7; -} - -/** - * Set a new animation frame for this house - * @param t the tile - * @param frame the new frame number - * @pre IsTileType(t, MP_HOUSE) - */ -static inline void SetHouseAnimationFrame(TileIndex t, byte frame) -{ - assert(IsTileType(t, MP_HOUSE)); - _me[t].m7 = frame; -} - -/** * Get the completion of this house * @param t the tile * @return true if it is, false if it is not @@ -386,7 +362,7 @@ static inline void MakeHouseTile(TileIndex t, TownID tid, byte counter, byte sta SetHouseType(t, type); SetHouseCompleted(t, stage == TOWN_HOUSE_COMPLETED); _m[t].m5 = IsHouseCompleted(t) ? 0 : (stage << 3 | counter); - SetHouseAnimationFrame(t, 0); + SetAnimationFrame(t, 0); SetHouseProcessingTime(t, HouseSpec::Get(type)->processing_time); } |