(svn r11411) -Codechange: implement random triggers for houses.
This commit is contained in:
@@ -299,6 +299,19 @@ static inline Year GetHouseConstructionYear(TileIndex t)
|
||||
return IsHouseCompleted(t) ? _m[t].m5 + ORIGINAL_BASE_YEAR : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the random bits for this house.
|
||||
* This is required for newgrf house
|
||||
* @param t the tile of this house
|
||||
* @param random the new random bits
|
||||
* @pre IsTileType(t, MP_HOUSE)
|
||||
*/
|
||||
static inline void SetHouseRandomBits(TileIndex t, byte random)
|
||||
{
|
||||
assert(IsTileType(t, MP_HOUSE));
|
||||
_m[t].m1 = random;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the random bits for this house.
|
||||
* This is required for newgrf house
|
||||
|
Reference in New Issue
Block a user