equal
deleted
inserted
replaced
298 assert(IsTileType(t, MP_HOUSE)); |
298 assert(IsTileType(t, MP_HOUSE)); |
299 return IsHouseCompleted(t) ? _m[t].m5 + ORIGINAL_BASE_YEAR : 0; |
299 return IsHouseCompleted(t) ? _m[t].m5 + ORIGINAL_BASE_YEAR : 0; |
300 } |
300 } |
301 |
301 |
302 /** |
302 /** |
|
303 * Set the random bits for this house. |
|
304 * This is required for newgrf house |
|
305 * @param t the tile of this house |
|
306 * @param random the new random bits |
|
307 * @pre IsTileType(t, MP_HOUSE) |
|
308 */ |
|
309 static inline void SetHouseRandomBits(TileIndex t, byte random) |
|
310 { |
|
311 assert(IsTileType(t, MP_HOUSE)); |
|
312 _m[t].m1 = random; |
|
313 } |
|
314 |
|
315 /** |
303 * Get the random bits for this house. |
316 * Get the random bits for this house. |
304 * This is required for newgrf house |
317 * This is required for newgrf house |
305 * @param t the tile of this house |
318 * @param t the tile of this house |
306 * @pre IsTileType(t, MP_HOUSE) |
319 * @pre IsTileType(t, MP_HOUSE) |
307 * @return random bits |
320 * @return random bits |