From 5ed2937e97f24b9d9aeadf65e2d2a0d37872ff31 Mon Sep 17 00:00:00 2001 From: alpha-ninja Date: Mon, 4 Aug 2014 13:14:07 +0200 Subject: [PATCH] Distribute load evenly The second factor was incorrect for both. --- js/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/map.js b/js/map.js index ec9a05c..cd9eddd 100644 --- a/js/map.js +++ b/js/map.js @@ -1094,8 +1094,8 @@ var gTileService = { .replace("{x}", norm.x) .replace("{y}", norm.y) .replace("{z}", norm.z) - .replace("[a-c]", String.fromCharCode(97 + Math.floor(Math.random() * 2))) - .replace("[1-4]", 1 + Math.floor(Math.random() * 3)), + .replace("[a-c]", String.fromCharCode(97 + Math.floor(Math.random() * 3))) + .replace("[1-4]", 1 + Math.floor(Math.random() * 4)), true); XHR.responseType = "blob"; XHR.addEventListener("load", function () { -- 2.35.3