Scoreboard Fix
Links don't always seem to have creators anymore, for some reason.
This commit is contained in:
parent
e3d6b135ce
commit
7a41d60d20
@ -69,7 +69,6 @@ window.plugin.scoreboard.compileStats = function() {
|
|||||||
|
|
||||||
var team = getTeam(val.options.data);
|
var team = getTeam(val.options.data);
|
||||||
var player = val.options.data.creator.creatorGuid;
|
var player = val.options.data.creator.creatorGuid;
|
||||||
|
|
||||||
window.plugin.scoreboard.initPlayer(player,team);
|
window.plugin.scoreboard.initPlayer(player,team);
|
||||||
|
|
||||||
// Google sends fields long since dead in the data. This makes sure it's still actually up.
|
// Google sends fields long since dead in the data. This makes sure it's still actually up.
|
||||||
@ -109,6 +108,7 @@ window.plugin.scoreboard.compileStats = function() {
|
|||||||
$.each(window.links, function(qk, link) {
|
$.each(window.links, function(qk, link) {
|
||||||
somethingInView = true;
|
somethingInView = true;
|
||||||
var team = getTeam(link.options.data);
|
var team = getTeam(link.options.data);
|
||||||
|
if(link.options.data.creator !== undefined) {
|
||||||
var player = link.options.data.creator.creatorGuid;
|
var player = link.options.data.creator.creatorGuid;
|
||||||
window.plugin.scoreboard.initPlayer(player, team);
|
window.plugin.scoreboard.initPlayer(player, team);
|
||||||
scores['team'][team]['count_links']++;
|
scores['team'][team]['count_links']++;
|
||||||
@ -131,7 +131,7 @@ window.plugin.scoreboard.compileStats = function() {
|
|||||||
// largestLink = linkLength;
|
// largestLink = linkLength;
|
||||||
//}
|
//}
|
||||||
//scores['player'][player]['largest']['link'] = largestLink;
|
//scores['player'][player]['largest']['link'] = largestLink;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
$.each(window.portals, function(qk, portal) {
|
$.each(window.portals, function(qk, portal) {
|
||||||
somethingInView = true;
|
somethingInView = true;
|
||||||
@ -204,6 +204,7 @@ window.plugin.scoreboard.fieldInfo = function(field) {
|
|||||||
+ window.digits(field.options.data.entityScore.entityScore)
|
+ window.digits(field.options.data.entityScore.entityScore)
|
||||||
+ ' - ' + window.getPlayerName(field.options.data.creator.creatorGuid)
|
+ ' - ' + window.getPlayerName(field.options.data.creator.creatorGuid)
|
||||||
+ '</div>';
|
+ '</div>';
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
retVal = 'N/A';
|
retVal = 'N/A';
|
||||||
}
|
}
|
||||||
@ -224,6 +225,7 @@ window.plugin.scoreboard.fieldInfoArea = function(field) {
|
|||||||
+ window.digits(Math.round(field.options.data.fieldArea))
|
+ window.digits(Math.round(field.options.data.fieldArea))
|
||||||
+ ' - ' + window.getPlayerName(field.options.data.creator.creatorGuid)
|
+ ' - ' + window.getPlayerName(field.options.data.creator.creatorGuid)
|
||||||
+ '</div>';
|
+ '</div>';
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
retVal = 'N/A';
|
retVal = 'N/A';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user