private int getFloorDrawHeight(int z, int y, int x) {
		int groundX = x >> 7;
		int groundY = y >> 7;
		if (groundX < 0 || groundY < 0 || groundX > 103 || groundY > 103)
			return 0;
		int groundZ = z;
		if (groundZ < 3 && (tileFlags[1][groundX][groundY] & 2) == 2)
			groundZ++;
		int _x = x & 0x7f;
		int _y = y & 0x7f;
		int i2 = intGroundArray[groundZ][groundX][groundY] * (128 - _x)
				+ intGroundArray[groundZ][groundX + 1][groundY] * _x >> 7;
		int j2 = intGroundArray[groundZ][groundX][groundY + 1] * (128 - _x)
				+ intGroundArray[groundZ][groundX + 1][groundY + 1] * _x >> 7;

		return i2 * (128 - _y) + j2 * _y >> 7;
	}