Refactor alliance storage to use a single object per alliance instead of one per alliance-team association.

This commit is contained in:
Patrick Fairbank
2022-07-31 12:08:43 -07:00
parent e83ec98408
commit 38518b0dd4
22 changed files with 411 additions and 451 deletions

View File

@@ -145,7 +145,7 @@ var handlePlaySound = function(sound) {
// Handles a websocket message to update the alliance selection screen.
var handleAllianceSelection = function(alliances) {
if (alliances && alliances.length > 0) {
var numColumns = alliances[0].length + 1;
var numColumns = alliances[0].TeamIds.length + 1;
$.each(alliances, function(k, v) {
v.Index = k + 1;
});