int result = ZDReaderGetPoint(&reader, &pointLat, &pointLon);
if(result < 0) {
return ZD_LOOKUP_PARSE_ERROR;
- } else if(result == 0) {
+ } if(result == 0) {
break;
}
if(winding == -4) {
return ZD_LOOKUP_IN_ZONE;
- } else if(winding == 4) {
+ } if(winding == 4) {
return ZD_LOOKUP_IN_EXCLUDED_ZONE;
- } else if(winding == 0) {
+ } if(winding == 0) {
return ZD_LOOKUP_NOT_IN_ZONE;
}
const ZDLookupResult lookupResult = ZDPointInPolygon(library, library->dataOffset + polygonIndex, latFixedPoint, lonFixedPoint, (safezone) ? &distanceSqrMin : nullptr);
if(lookupResult == ZD_LOOKUP_PARSE_ERROR) {
break;
- } else if(lookupResult != ZD_LOOKUP_NOT_IN_ZONE) {
+ } if(lookupResult != ZD_LOOKUP_NOT_IN_ZONE) {
auto newResults = static_cast<ZoneDetectResult *>(realloc(results, sizeof(ZoneDetectResult) * (numResults + 2)));
if(newResults) {