(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.
This commit is contained in:
belugas 2008-06-15 02:48:25 +00:00
parent 8bc42a8c2f
commit 237a6f554a

View File

@ -254,6 +254,12 @@ static uint32 HouseGetVariable(const ResolverObject *object, byte variable, byte
/* 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);
}