[guess-player-levels] fix accidentally commited code

This commit is contained in:
fkloft 2014-09-13 21:36:43 +02:00
parent 5ccc42245b
commit 819762451d

View File

@ -260,10 +260,10 @@ window.plugin.guessPlayerLevels.extractChatData = function(data) {
var portals = {}; var portals = {};
attackData[nick][timestamp].forEach(function(portal) { attackData[nick][timestamp].forEach(function(portal) {
// no GUID in the data any more - but we need some unique string. use the latE6,lngE6 // no GUID in the data any more - but we need some unique string. use the latE6,lngE6
markup[1].latE6+","+markup[1].lngE6; var id = portal.latE6+","+portal.lngE6;
if(portals.hasOwnProperty(portal.guid)) if(portals.hasOwnProperty(id))
return; return;
portals[portal.guid] = 1; portals[id] = 1;
latlngs.push({x: portal.lngE6/1E6, y:portal.latE6/1E6}); latlngs.push({x: portal.lngE6/1E6, y:portal.latE6/1E6});
}); });
if(latlngs.length < 2) // we need at least 2 portals to calculate burster range if(latlngs.length < 2) // we need at least 2 portals to calculate burster range