small refactoring
This commit is contained in:
parent
37d795cf7b
commit
37d8a9eee8
1 changed files with 2 additions and 4 deletions
|
@ -478,10 +478,8 @@ public class OsmandRegions {
|
||||||
|
|
||||||
if (object.getPointsLength() > 1) {
|
if (object.getPointsLength() > 1) {
|
||||||
for (int i = 1; i < object.getPointsLength(); i++) {
|
for (int i = 1; i < object.getPointsLength(); i++) {
|
||||||
int tileX = object.getPoint31XTile(i);
|
currentX = object.getPoint31XTile(i);
|
||||||
int tileY = object.getPoint31YTile(i);
|
currentY = object.getPoint31YTile(i);
|
||||||
currentX = tileX;
|
|
||||||
currentY = tileY;
|
|
||||||
if (currentX > maxX) {
|
if (currentX > maxX) {
|
||||||
maxX = currentX;
|
maxX = currentX;
|
||||||
} else if (currentX < minX) {
|
} else if (currentX < minX) {
|
||||||
|
|
Loading…
Reference in a new issue