willcrichton / awap

#startuptycoon
http://acmalgo.com
0 stars 0 forks source link

Handle multiple connections with same teamId #9

Closed dlareau closed 9 years ago

dlareau commented 10 years ago

Currently getPlayerbyTeam can't be used to setup a match if multiple of the same teamId are connected as it looks for the first person with that teamId. Could either write clever code or resign to allowing a team to have multiple teamId's

dlareau commented 10 years ago

Sort of fixed with 1d6229d9ecaa607a76ce716dd67d49fdee728bcb , by adding a suffix to any non-unique teamId to make it unique. May not be the best solution.