Changeset - r10110:c3a31d3b2182
[Not reviewed]
master
0 1 0
belugas - 16 years ago 2008-09-12 17:02:22
belugas@openttd.org
(svn r14294) -Feature[newGRF]: Add Variational Action 2 Variable 0x47 for houses, Coordinates of the house tile
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf_house.cpp
Show inline comments
 
@@ -333,6 +333,8 @@ static uint32 HouseGetVariable(const Res
 
		/* Current animation frame. */
 
		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;
 

	
 
		/* Building counts for old houses with id = parameter. */
 
		case 0x60: return GetNumHouses(parameter, town);
0 comments (0 inline, 0 general)