Merge pull request #78 from Xelio/patch-map-resonator

draw resonators for each portal on map for high zoom levels (17+). Patch by Xelio.
This commit is contained in:
Stefan Breunig
2013-02-10 10:26:52 -08:00
5 changed files with 113 additions and 7 deletions

View File

@ -154,6 +154,8 @@ window.getTypeByGuid = function(guid) {
// .b == fields
// .c == player/creator
// .d == chat messages
//
// resonator guid is [portal guid]-resonator-[slot]
switch(guid.slice(33)) {
case '11':
case '12':
@ -172,6 +174,7 @@ window.getTypeByGuid = function(guid) {
return TYPE_CHAT;
default:
if(guid.slice(-11,-2) == 'resonator') return TYPE_RESONATOR;
return TYPE_UNKNOWN;
}
}