ext/h3/src/src/apps/miscapps/generateBaseCellNeighbors.c in h3-3.4.0 vs ext/h3/src/src/apps/miscapps/generateBaseCellNeighbors.c in h3-3.4.4

- old
+ new

@@ -159,21 +159,21 @@ // but this can't be because i is deleted from the // pentagon. We need to choose a different direction. if (dir == K_AXES_DIGIT) { // 4 and 117 are 'polar' type pentagons, which have // some different behavior. - if (i == 4 || i == 117) { + if (_isBaseCellPentagon(i)) { _ijkRotate60cw(&ijk); _ijkRotate60cw(&ijk); } else { _ijkRotate60ccw(&ijk); } dir = _unitIjkToDigit(&ijk); } // Adjust for the deleted k-subsequence distortion int rotAdj = 0; - if (i == 4 || i == 117) { + if (_isBaseCellPolarPentagon(i)) { // 'polar' type pentagon with all faces pointing // towards i if (dir == IK_AXES_DIGIT) { rotAdj = 2; } else if (dir == IJ_AXES_DIGIT) {