mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r14294) -Feature[newGRF]: Add Variational Action 2 Variable 0x47 for houses, Coordinates of the house tile
This commit is contained in:
parent
37edc141e2
commit
13eab4177d
@ -333,6 +333,8 @@ static uint32 HouseGetVariable(const ResolverObject *object, byte variable, byte
|
||||
/* Current animation frame. */
|
||||
case 0x46: return IsTileType(tile, MP_HOUSE) ? GetHouseAnimationFrame(tile) : 0;
|
||||
|
||||
/* Position of the house */
|
||||
case 0x47: return IsTileType(tile, MP_HOUSE) ? TileY(tile) << 16 | TileX(tile) : 0;
|
||||
|
||||
/* Building counts for old houses with id = parameter. */
|
||||
case 0x60: return GetNumHouses(parameter, town);
|
||||
|
Loading…
Reference in New Issue
Block a user