(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.
This commit is contained in:
belugas 2008-09-12 17:05:23 +00:00
parent 13eab4177d
commit a2b00e24b6

View File

@ -334,7 +334,7 @@ static uint32 HouseGetVariable(const ResolverObject *object, byte variable, byte
case 0x46: return IsTileType(tile, MP_HOUSE) ? GetHouseAnimationFrame(tile) : 0; case 0x46: return IsTileType(tile, MP_HOUSE) ? GetHouseAnimationFrame(tile) : 0;
/* Position of the house */ /* 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. */ /* Building counts for old houses with id = parameter. */
case 0x60: return GetNumHouses(parameter, town); case 0x60: return GetNumHouses(parameter, town);