Commit b5ad3ee4 authored by nanahira's avatar nanahira

fix stuck when reconnect after tp

parent 5f586497
...@@ -682,7 +682,7 @@ CLIENT_send_reconnect_info = (client, server, room) -> ...@@ -682,7 +682,7 @@ CLIENT_send_reconnect_info = (client, server, room) ->
client.reconnecting = false client.reconnecting = false
else if room.selecting_tp else if room.selecting_tp
ygopro.stoc_send(client, 'DUEL_START') ygopro.stoc_send(client, 'DUEL_START')
if client == room.selecting_tp and !client.selected_preduel if client == room.selecting_tp # and !client.selected_preduel
ygopro.stoc_send(client, 'SELECT_TP') ygopro.stoc_send(client, 'SELECT_TP')
client.reconnecting = false client.reconnecting = false
else else
...@@ -2801,7 +2801,7 @@ ygopro.ctos_follow 'TP_RESULT', false, (buffer, info, client, server)-> ...@@ -2801,7 +2801,7 @@ ygopro.ctos_follow 'TP_RESULT', false, (buffer, info, client, server)->
room=ROOM_all[client.rid] room=ROOM_all[client.rid]
return unless room return unless room
client.selected_preduel = true client.selected_preduel = true
room.selecting_tp = false # room.selecting_tp = false
return unless room.random_type or room.arena return unless room.random_type or room.arena
room.last_active_time = moment() room.last_active_time = moment()
return return
......
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