summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-09-12 17:05:23 +0000
committerbelugas <belugas@openttd.org>2008-09-12 17:05:23 +0000
commita2b00e24b6413ca14a58c430feeed9acd7ef2764 (patch)
tree44f824cb5cc244d1a504b3a6a1efc6da9861dd6d /src
parent13eab4177db5386f273040d823609bb5bcfb32bd (diff)
downloadopenttd-a2b00e24b6413ca14a58c430feeed9acd7ef2764.tar.xz
(svn r14295) -Fix(r14294): If the house is not built yet, still give me proper coordinates, pretty please!
Plus, two(2) rogue tabs found their way in.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_house.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index a6db1fa49..9622588b8 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -334,7 +334,7 @@ static uint32 HouseGetVariable(const ResolverObject *object, byte variable, byte
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;
+ case 0x47: return TileY(tile) << 16 | TileX(tile);
/* Building counts for old houses with id = parameter. */
case 0x60: return GetNumHouses(parameter, town);