(svn r11411) -Codechange: implement random triggers for houses.

This commit is contained in:
rubidium
2007-11-11 17:58:05 +00:00
parent c1cf9f3396
commit dcbd2fdfc7
4 changed files with 71 additions and 5 deletions

View File

@@ -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