X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=js%2Fmap.js;h=5cd194e59268d17dda3175e399cdc55e97efa7fc;hp=5709a561b8c3a85e5671fb237baaacd5a53aaa83;hb=0118cbd3293b6d9da865d3d520d475cc07b8f93e;hpb=17967f7dc1c7886c24c37503683d868cd3c55c8b;ds=sidebyside diff --git a/js/map.js b/js/map.js index 5709a56..5cd194e 100644 --- a/js/map.js +++ b/js/map.js @@ -262,7 +262,7 @@ function drawMap() { // Go through all the tiles we want. // If any of them aren't loaded or being loaded, do so. for (var x = Math.floor(xMin / size); x < Math.ceil(xMax / size); x++) { - for (var y = Math.floor(yMin / size); y < Math.ceil(yMax / size); y++) { + for (var y = Math.floor(yMin / size); y < Math.ceil(yMax / size); y++) { // slow script warnings on the tablet appear here! var xoff = (x * size - xMin) / gZoomFactor; var yoff = (y * size - yMin) / gZoomFactor; var tileKey = encodeIndex(x, y, gPos.z);