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
This commit is contained in:
Jon Atkins 2015-06-26 02:15:09 +01:00
parent 9c487a3001
commit 40b92235ea

View File

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