feedback5 R19B: the round-start banner reads 观战中 to an eliminated player and to a spectator seat instead of 资金已到账 — the server pays round income only to the players still in (startRound runs ps.startRound for alivePlayers(), eliminate() zeroes funds and pendingFunds); phaseBanner takes the viewer { alive, spectator } from the match screen (a spectator seat has no row in m.public); the idea from PR #237 (not merged: it sits on the #189 / #191 stack); GitHub #236; golden: unchanged (client text only)
This commit is contained in:
1 parent
0b306baa49
commit
7d97b80bfd
5 files changed
+54
-4
No files matched your search
@@ -576,7 +576,7 @@ function MatchScreen() {
|
||||
const prev = prevPhase.current;
|
||||
prevPhase.current = phase;
|
||||
if (prev === phase) return;
|
||||
const b = phaseBanner(phase, pub);
|
||||
const b = phaseBanner(phase, pub, { alive, spectator });
|
||||
if (b) setBanner({ ...b, key: phaseKey });
|
||||
if (phase === PHASE.ROUND_START) audio.sfx('roundStart');
|
||||
else if (phase === PHASE.PREP) audio.sfx('rest', { volume: 0.7 });
|
||||
|
||||
Reference in new issue
Block a user