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;
|
||||
|
||||
// wrap around date-line
|
||||
while (x < 0)
|
||||
x += 1.0;
|
||||
while (x > 1)
|
||||
x -= 1.0;
|
||||
// while (x < -1)
|
||||
// x += 1.0;
|
||||
// while (x > 2)
|
||||
// x -= 1.0;
|
||||
|
||||
m.mvp.setTransScale((float) (x * tileScale), (float) (y * tileScale),
|
||||
(float) ((curPos.scale / oPos.scale) / GLRenderer.COORD_SCALE));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user