summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-09-12 17:02:22 +0000
committerbelugas <belugas@openttd.org>2008-09-12 17:02:22 +0000
commitdb278c68dedf333f171dcd041e23e5133587a03f (patch)
tree25b1a11724b3227185ffb60ecc21c61e3fc63c59
parent70525eaa7f1c037b512c7a92759f6c0aa12b6b88 (diff)
downloadopenttd-db278c68dedf333f171dcd041e23e5133587a03f.tar.xz
(svn r14294) -Feature[newGRF]: Add Variational Action 2 Variable 0x47 for houses, Coordinates of the house tile
-rw-r--r--src/newgrf_house.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index 5ef9089be..a6db1fa49 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);