Finish correction of zoom file coordinate correction for HDMap
This commit is contained in:
parent
5fa6770a43
commit
766a7574aa
1 changed files with 2 additions and 0 deletions
|
|
@ -267,10 +267,12 @@ public class DynmapWorld {
|
||||||
else
|
else
|
||||||
x = x + (x % (2*step));
|
x = x + (x % (2*step));
|
||||||
if(pd.neg_step_x) x = -x;
|
if(pd.neg_step_x) x = -x;
|
||||||
|
if(pd.neg_step_y) y = -y;
|
||||||
if(y >= 0)
|
if(y >= 0)
|
||||||
y = y - (y % (2*step));
|
y = y - (y % (2*step));
|
||||||
else
|
else
|
||||||
y = y + (y % (2*step));
|
y = y + (y % (2*step));
|
||||||
|
if(pd.neg_step_y) y = -y;
|
||||||
/* Make name of corresponding zoomed tile */
|
/* Make name of corresponding zoomed tile */
|
||||||
String zfname = makeFilePath(pd, x, y, true);
|
String zfname = makeFilePath(pd, x, y, true);
|
||||||
File zf = new File(worldtilepath, zfname);
|
File zf = new File(worldtilepath, zfname);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue