Commit 10e0ae03 authored by nanahira's avatar nanahira

update

parent 921824dd
...@@ -1504,7 +1504,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)-> ...@@ -1504,7 +1504,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
return return
found = false found = false
for k,match of data for k,match of data
if match and match.match and !match.winnerId and (match.match.player1Id == client.challonge_info.id or match.match.player2Id == client.challonge_info.id) if match and match.match and !match.match.winnerId and (match.match.player1Id == client.challonge_info.id or match.match.player2Id == client.challonge_info.id)
found = match.match found = match.match
break break
if !found if !found
......
...@@ -1843,7 +1843,7 @@ ...@@ -1843,7 +1843,7 @@
found = false; found = false;
for (k in data) { for (k in data) {
match = data[k]; match = data[k];
if (match && match.match && !match.winnerId && (match.match.player1Id === client.challonge_info.id || match.match.player2Id === client.challonge_info.id)) { if (match && match.match && !match.match.winnerId && (match.match.player1Id === client.challonge_info.id || match.match.player2Id === client.challonge_info.id)) {
found = match.match; found = match.match;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment