From 40b92235ea5ac3876ba028153c832a25b2b03267 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Fri, 26 Jun 2015 02:15:09 +0100 Subject: [PATCH] remove portals from the map sooner when the server wouldn't return them bit hacky... but will do for now until I think of a good way of handling things with the recent changes --- code/map_data_request.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/map_data_request.js b/code/map_data_request.js index 12ad93c8..4bef5c95 100644 --- a/code/map_data_request.js +++ b/code/map_data_request.js @@ -230,7 +230,8 @@ window.MapDataRequest.prototype.refresh = function() { window.runHooks ('mapDataRefreshStart', {bounds: bounds, mapZoom: mapZoom, dataZoom: dataZoom, minPortalLevel: tileParams.level, tileBounds: dataBounds}); - this.render.startRenderPass(tileParams.level, dataBounds); +//hack: fake the min level to 9999 when the data level doesn't include any portals + this.render.startRenderPass(tileParams.hasPortals?tileParams.level:9999, dataBounds); this.render.processGameEntities(artifact.getArtifactEntities(),true);