From f3f871df3cfce3c12289c1ee4dae7a0b8dba4f5e Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Mon, 4 Jul 2011 22:34:30 -0500 Subject: [PATCH] Finish correction of zoom file coordinate correction for HDMap --- src/main/java/org/dynmap/DynmapWorld.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/dynmap/DynmapWorld.java b/src/main/java/org/dynmap/DynmapWorld.java index 9c9097c5..e4d828eb 100644 --- a/src/main/java/org/dynmap/DynmapWorld.java +++ b/src/main/java/org/dynmap/DynmapWorld.java @@ -267,10 +267,12 @@ public class DynmapWorld { else x = x + (x % (2*step)); if(pd.neg_step_x) x = -x; + if(pd.neg_step_y) y = -y; if(y >= 0) y = y - (y % (2*step)); else y = y + (y % (2*step)); + if(pd.neg_step_y) y = -y; /* Make name of corresponding zoomed tile */ String zfname = makeFilePath(pd, x, y, true); File zf = new File(worldtilepath, zfname);