Fix ocean tiles
This commit is contained in:
parent
068d5d0f59
commit
48b0f8e189
1 changed files with 4 additions and 5 deletions
|
@ -730,7 +730,7 @@ bool searchMapTreeBounds(io::CodedInputStream* input, MapTreeBounds* current, Ma
|
|||
readInt(input, &child->length);
|
||||
child->filePointer = input->getTotalBytesRead();
|
||||
int oldLimit = input->PushLimit(child->length);
|
||||
if (current->ocean != -1) {
|
||||
if (current->ocean) {
|
||||
child->ocean = current->ocean;
|
||||
}
|
||||
searchMapTreeBounds(input, child, current, req, foundSubtrees);
|
||||
|
@ -904,6 +904,9 @@ extern "C" JNIEXPORT jint JNICALL Java_net_osmand_plus_render_NativeOsmandLibrar
|
|||
}
|
||||
}
|
||||
}
|
||||
if (q.ocean) {
|
||||
ocean = true;
|
||||
}
|
||||
if (!q.isCancelled()) {
|
||||
std::vector<MapDataObject*>::iterator r = q.result.begin();
|
||||
tempResult.reserve(q.result.size() + tempResult.size());
|
||||
|
@ -931,10 +934,6 @@ extern "C" JNIEXPORT jint JNICALL Java_net_osmand_plus_render_NativeOsmandLibrar
|
|||
tempResult.push_back(*r);
|
||||
}
|
||||
}
|
||||
|
||||
if (q.ocean) {
|
||||
ocean = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue