mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r21456) -Fix: [NewGRF] make sure the parameter for house var 60 is the id of an original house
This commit is contained in:
parent
77aa035e4a
commit
fff4bdecd8
@ -288,7 +288,7 @@ static uint32 HouseGetVariable(const ResolverObject *object, byte variable, byte
|
||||
case 0x47: return TileY(tile) << 16 | TileX(tile);
|
||||
|
||||
/* Building counts for old houses with id = parameter. */
|
||||
case 0x60: return GetNumHouses(parameter, town);
|
||||
case 0x60: return parameter < NEW_HOUSE_OFFSET ? GetNumHouses(parameter, town) : 0;
|
||||
|
||||
/* Building counts for new houses with id = parameter. */
|
||||
case 0x61: {
|
||||
|
Loading…
Reference in New Issue
Block a user