mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(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:
parent
13eab4177d
commit
a2b00e24b6
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user