fix wrap, if needed. this was wrong

This commit is contained in:
Hannes Janetzek 2013-04-08 03:07:37 +02:00
parent 5d08d13b51
commit 7145b067a0

View File

@ -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));