Commit 083b2f2b authored by nanahira's avatar nanahira

Merge branch 'mc'

parents 12ff868f 36e170ab
......@@ -1535,9 +1535,9 @@ class Room
send_replays: () ->
return false unless settings.modules.replay_delay and @replays.length and @hostinfo.mode == 1
for player in @players
for player in @players when player
CLIENT_send_replays(player, this)
for player in @watchers
for player in @watchers when player
CLIENT_send_replays(player, this)
return true
......
......@@ -2067,12 +2067,16 @@
ref3 = this.players;
for (m = 0, len2 = ref3.length; m < len2; m++) {
player = ref3[m];
CLIENT_send_replays(player, this);
if (player) {
CLIENT_send_replays(player, this);
}
}
ref4 = this.watchers;
for (n = 0, len3 = ref4.length; n < len3; n++) {
player = ref4[n];
CLIENT_send_replays(player, this);
if (player) {
CLIENT_send_replays(player, this);
}
}
return true;
}
......
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