fix wrap, if needed. this was wrong
This commit is contained in:
parent
5d08d13b51
commit
7145b067a0
@ -90,10 +90,10 @@ public abstract class RenderOverlay {
|
|||||||
double y = oPos.y - curPos.y;
|
double y = oPos.y - curPos.y;
|
||||||
|
|
||||||
// wrap around date-line
|
// wrap around date-line
|
||||||
while (x < 0)
|
// while (x < -1)
|
||||||
x += 1.0;
|
// x += 1.0;
|
||||||
while (x > 1)
|
// while (x > 2)
|
||||||
x -= 1.0;
|
// x -= 1.0;
|
||||||
|
|
||||||
m.mvp.setTransScale((float) (x * tileScale), (float) (y * tileScale),
|
m.mvp.setTransScale((float) (x * tileScale), (float) (y * tileScale),
|
||||||
(float) ((curPos.scale / oPos.scale) / GLRenderer.COORD_SCALE));
|
(float) ((curPos.scale / oPos.scale) / GLRenderer.COORD_SCALE));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user