Changeset - r11907:e9ad0e83ab1e
[Not reviewed]
master
0 1 0
frosch - 15 years ago 2009-05-15 22:45:31
frosch@openttd.org
(svn r16314) -Fix (r9315): Allow accessing the houseage when the house is not yet built.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_house.cpp
Show inline comments
 
@@ -255,7 +255,7 @@ static uint32 HouseGetVariable(const Res
 
		case 0x40: return (IsTileType(tile, MP_HOUSE) ? GetHouseBuildingStage(tile) : 0) | TileHash2Bit(TileX(tile), TileY(tile)) << 2;
 

	
 
		/* Building age. */
 
		case 0x41: return GetHouseAge(tile);
 
		case 0x41: return IsTileType(tile, MP_HOUSE) ? GetHouseAge(tile) : 0;
 

	
 
		/* Town zone */
 
		case 0x42: return GetTownRadiusGroup(town, tile);
0 comments (0 inline, 0 general)