(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.
replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
belugas 17 years ago
parent 8bc42a8c2f
commit 237a6f554a

@ -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);
}

Loading…
Cancel
Save