remove superfluous delete function

This commit is contained in:
Stefan Breunig
2013-02-11 19:48:23 +01:00
parent f3bcc3ef03
commit dcc860fa14

View File

@ -228,12 +228,10 @@ window.renderPortal = function(ent) {
// nothing for the portal changed, so dont update. Let resonators
// manage themselves if they want to be updated.
if(!u) return renderResonators(ent);
// there were changes, remove old portal
removeByGuid(ent[0]);
}
// there were changes, remove old portal
removeByGuid(ent[0]);
var latlng = [ent[2].locationE6.latE6/1E6, ent[2].locationE6.lngE6/1E6];
// pre-loads player names for high zoom levels