1
0
Fork 0

(svn r14294) -Feature[newGRF]: Add Variational Action 2 Variable 0x47 for houses, Coordinates of the house tile

release/0.7
belugas 2008-09-12 17:02:22 +00:00
parent 37edc141e2
commit 13eab4177d
1 changed files with 2 additions and 0 deletions

View File

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