Change matchmaking update logic condition
This commit is contained in:
3
app.py
3
app.py
@@ -262,12 +262,13 @@ async def quick_match(request: Request):
|
|||||||
second = None
|
second = None
|
||||||
position: int = 0
|
position: int = 0
|
||||||
# UPDATE LOGIC
|
# UPDATE LOGIC
|
||||||
while not second and position < len(quick_queue):
|
while position < len(quick_queue):
|
||||||
if quick_queue[position] not in quick_map:
|
if quick_queue[position] not in quick_map:
|
||||||
if not first:
|
if not first:
|
||||||
first = quick_queue[position]
|
first = quick_queue[position]
|
||||||
else:
|
else:
|
||||||
second = quick_queue[position]
|
second = quick_queue[position]
|
||||||
|
break
|
||||||
position += 1
|
position += 1
|
||||||
if first and second:
|
if first and second:
|
||||||
room = Room()
|
room = Room()
|
||||||
|
|||||||
Reference in New Issue
Block a user