mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Refactor alliance storage to use a single object per alliance instead of one per alliance-team association.
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user