From 4efa2efdbba6f08b2ee4ca3aacb2aeb792429af4 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 26 Aug 2010 14:45:45 +0000 Subject: (svn r20622) -Codechange: unify [GS]et[Statation|Object|Industry|House]AnimationFrame --- src/town_map.h | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'src/town_map.h') 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 @@ -139,30 +139,6 @@ static inline void SetLiftPosition(TileIndex t, byte pos) SB(_m[t].m6, 2, 6, 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 @@ -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); } -- cgit v1.2.3-54-g00ecf