(svn r20622) -Codechange: unify [GS]et[Statation|Object|Industry|House]AnimationFrame
This commit is contained in:
@@ -228,29 +228,6 @@ static inline void SetIndustryAnimationLoop(TileIndex tile, byte count)
|
||||
_m[tile].m4 = count;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the animation state
|
||||
* @param tile the tile to get the animation state of
|
||||
* @pre IsTileType(tile, MP_INDUSTRY)
|
||||
*/
|
||||
static inline byte GetIndustryAnimationState(TileIndex tile)
|
||||
{
|
||||
assert(IsTileType(tile, MP_INDUSTRY));
|
||||
return _me[tile].m7;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the animation state
|
||||
* @param tile the tile to set the animation state of
|
||||
* @param state the new animation state
|
||||
* @pre IsTileType(tile, MP_INDUSTRY)
|
||||
*/
|
||||
static inline void SetIndustryAnimationState(TileIndex tile, byte state)
|
||||
{
|
||||
assert(IsTileType(tile, MP_INDUSTRY));
|
||||
_me[tile].m7 = state;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the random bits for this tile.
|
||||
* Used for grf callbacks
|
||||
|
Reference in New Issue
Block a user