Commit 36e277af authored by nanahira's avatar nanahira

fix watch_public_hand

parent d661673b
Pipeline #34594 passed with stages
in 10 minutes and 31 seconds
...@@ -1518,7 +1518,7 @@ class Room ...@@ -1518,7 +1518,7 @@ class Room
@hostinfo.replay_mode |= 0x1 @hostinfo.replay_mode |= 0x1
if (settings.modules.tournament_mode.enabled and settings.modules.tournament_mode.block_replay_to_player) or (@hostinfo.mode == 1 and settings.modules.replay_delay) # 0x2: Block the replays to observers if (settings.modules.tournament_mode.enabled and settings.modules.tournament_mode.block_replay_to_player) or (@hostinfo.mode == 1 and settings.modules.replay_delay) # 0x2: Block the replays to observers
@hostinfo.replay_mode |= 0x2 @hostinfo.replay_mode |= 0x2
if settings.modules.tournament_mode.enabled or @arena # 0x4: Save chat in cloud replay if settings.modules.tournament_mode.enabled or @arena or settings.modules.test_mode.watch_public_hand # 0x4: Save chat in cloud replay
@hostinfo.replay_mode |= 0x4 @hostinfo.replay_mode |= 0x4
if !@recovered if !@recovered
......
...@@ -1964,7 +1964,7 @@ ...@@ -1964,7 +1964,7 @@
if ((settings.modules.tournament_mode.enabled && settings.modules.tournament_mode.block_replay_to_player) || (this.hostinfo.mode === 1 && settings.modules.replay_delay)) { // 0x2: Block the replays to observers if ((settings.modules.tournament_mode.enabled && settings.modules.tournament_mode.block_replay_to_player) || (this.hostinfo.mode === 1 && settings.modules.replay_delay)) { // 0x2: Block the replays to observers
this.hostinfo.replay_mode |= 0x2; this.hostinfo.replay_mode |= 0x2;
} }
if (settings.modules.tournament_mode.enabled || this.arena) { // 0x4: Save chat in cloud replay if (settings.modules.tournament_mode.enabled || this.arena || settings.modules.test_mode.watch_public_hand) { // 0x4: Save chat in cloud replay
this.hostinfo.replay_mode |= 0x4; this.hostinfo.replay_mode |= 0x4;
} }
if (!this.recovered) { if (!this.recovered) {
......
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