and shortly after I removed the code that limited drawing of very short links... niantic chance the server and start returning them again!

so probably better with this re-enabled
This commit is contained in:
Jon Atkins 2014-07-04 19:37:19 +01:00
parent 754e733852
commit 2a35330fb7

View File

@ -490,16 +490,14 @@ window.Render.prototype.getPortalClusterID = function(portal) {
window.Render.prototype.linkVisible = function(link) {
// server now culls short links - so no point in IITC also doing it
return true;
// if (!this.bounds.intersects(link.getBounds())) {
// return false;
// }
if (!this.bounds.intersects(link.getBounds())) {
return false;
}
// var lengthSquared = this.getLinkPixelLengthSquared (link);
var lengthSquared = this.getLinkPixelLengthSquared (link);
// return lengthSquared >= this.LINK_VISIBLE_PIXEL_LENGTH*this.LINK_VISIBLE_PIXEL_LENGTH;
return lengthSquared >= this.LINK_VISIBLE_PIXEL_LENGTH*this.LINK_VISIBLE_PIXEL_LENGTH;
}