From 13eab4177db5386f273040d823609bb5bcfb32bd Mon Sep 17 00:00:00 2001 From: belugas Date: Fri, 12 Sep 2008 17:02:22 +0000 Subject: [PATCH] (svn r14294) -Feature[newGRF]: Add Variational Action 2 Variable 0x47 for houses, Coordinates of the house tile --- src/newgrf_house.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 5ef9089be9..a6db1fa490 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -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);