Changeset - r9523:119809ed46fc
[Not reviewed]
master
0 1 0
belugas - 16 years ago 2008-06-15 02:48:25
belugas@openttd.org
(svn r13519) -Feature[newGRF]: Implement var 63, variational action2 variable for Houses.
Or, in more simple terms, the check for the animation frame of nearby house.
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf_house.cpp
Show inline comments
 
@@ -254,6 +254,12 @@ static uint32 HouseGetVariable(const Res
 
		/* Land info for nearby tiles. */
 
		case 0x62: return GetNearbyTileInformation(parameter, tile);
 

	
 
		/* Current animation frame of nearby house tiles */
 
		case 0x63: {
 
			TileIndex testtile = GetNearbyTile(parameter, tile);
 
			return IsTileType(testtile, MP_HOUSE) ? GetHouseAnimationFrame(testtile) : 0;
 
		}
 

	
 
		/* Read GRF parameter */
 
		case 0x7F: return GetGRFParameter(object->u.house.house_id, parameter);
 
	}
0 comments (0 inline, 0 general)