Commit 89d20c5f authored by nanahira's avatar nanahira

Merge branch 'mc'

parents 81446259 105d8d00
...@@ -849,7 +849,7 @@ CLIENT_send_reconnect_info = (client, server, room) -> ...@@ -849,7 +849,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
...@@ -3279,7 +3279,7 @@ ygopro.ctos_follow 'TP_RESULT', false, (buffer, info, client, server)-> ...@@ -3279,7 +3279,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
......
...@@ -1121,7 +1121,7 @@ ...@@ -1121,7 +1121,7 @@
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 && !client.selected_preduel) { if (client === room.selecting_tp) {
ygopro.stoc_send(client, 'SELECT_TP'); ygopro.stoc_send(client, 'SELECT_TP');
} }
client.reconnecting = false; client.reconnecting = false;
...@@ -4200,7 +4200,6 @@ ...@@ -4200,7 +4200,6 @@
return; return;
} }
client.selected_preduel = true; client.selected_preduel = true;
room.selecting_tp = false;
if (!(room.random_type || room.arena)) { if (!(room.random_type || room.arena)) {
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