From b22842a902bf2f56d98ff3220a1be93fb1e0192c Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 16 Feb 2015 19:30:58 +0000 Subject: [PATCH] include the index 10 portal data value as unknown_10 until we know what it's used for --- code/map_data_render.js | 6 +++--- code/portal_detail.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/map_data_render.js b/code/map_data_render.js index 4dfc1c78..649b46cb 100644 --- a/code/map_data_render.js +++ b/code/map_data_render.js @@ -235,7 +235,7 @@ window.Render.prototype.createPortalEntity = function(ent) { var latlng = L.latLng(ent[2][2]/1E6, ent[2][3]/1E6); var data = { -// type: ent[2][0], + // ent[2][0] is type - not needed as we know we're a portal team: ent[2][1], latE6: ent[2][2], lngE6: ent[2][3], @@ -244,8 +244,8 @@ window.Render.prototype.createPortalEntity = function(ent) { resCount: ent[2][6], image: ent[2][7], title: ent[2][8], - ornaments: ent[2][9] - // and a new ent[2][10] ??? - maybe mission markers for portals? + ornaments: ent[2][9], + unknown_10: ent[2][10], // temp name until we know what this value does }; var dataOptions = { diff --git a/code/portal_detail.js b/code/portal_detail.js index 7cde24d0..7031af26 100644 --- a/code/portal_detail.js +++ b/code/portal_detail.js @@ -57,7 +57,7 @@ var handleResponse = function(guid, data, success) { if (success) { var dict = { // raw: data.result, - type: data.result[0], + // result[0] is type - not needed (always a portal!) team: data.result[1], latE6: data.result[2], lngE6: data.result[3], @@ -67,7 +67,7 @@ var handleResponse = function(guid, data, success) { image: data.result[7], title: data.result[8], ornaments: data.result[9], - // what's [10]? + unknown_10: data.result[10], // temp name until we know what this value does mods: data.result[11].map(parseMod), resonators:data.result[12].map(parseResonator), owner: data.result[13],