Commit 73ae206c authored by nanahira's avatar nanahira

fix replays being cut

parent daf08145
...@@ -2454,10 +2454,10 @@ ygopro.stoc_follow 'DUEL_END', false, (buffer, info, client, server, datas)-> ...@@ -2454,10 +2454,10 @@ ygopro.stoc_follow 'DUEL_END', false, (buffer, info, client, server, datas)->
return unless room and settings.modules.replay_delay and room.hostinfo.mode == 1 return unless room and settings.modules.replay_delay and room.hostinfo.mode == 1
SOCKET_flush_data(client, datas) SOCKET_flush_data(client, datas)
CLIENT_send_replays(client, room) CLIENT_send_replays(client, room)
if !room.replays_sent_to_watchers if !room.replays_sent_to_watchers and (client.pos == 0 or !room.dueling_players[0] or room.dueling_players[0].closed)
room.replays_sent_to_watchers = true room.replays_sent_to_watchers = true
# for player in room.players when player and player.pos > 3 for player in room.players when player and player.pos > 3
# CLIENT_send_replays(player, room) CLIENT_send_replays(player, room)
for player in room.watchers when player for player in room.watchers when player
CLIENT_send_replays(player, room) CLIENT_send_replays(player, room)
......
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