release: promote development → master (v1.22.0) #274
@@ -1451,12 +1451,11 @@
|
|||||||
return s.displayName;
|
return s.displayName;
|
||||||
}
|
}
|
||||||
|
|
||||||
// turnLabel is the under-board status when it is not the viewer's turn: the opponent's name
|
// turnLabel is the under-board status when it is not the viewer's turn, for online PvP and
|
||||||
// once they have joined, or a generic "opponent's turn" while the seat is still empty (waiting).
|
// vs_ai (the hotseat branch of the turn strip shows the seat's own name instead): a generic
|
||||||
|
// "opponent's turn" rather than the opponent's name or the robot mark, so whose turn it is
|
||||||
|
// reads the same everywhere. The seat row below still names each player.
|
||||||
function turnLabel(): string {
|
function turnLabel(): string {
|
||||||
if (view?.game.vsAi) return '🤖';
|
|
||||||
const s = view?.game.seats[view?.game.toMove ?? -1];
|
|
||||||
if (s && s.accountId && s.accountId !== app.session?.userId) return s.displayName;
|
|
||||||
return t('game.opponentsTurn');
|
return t('game.opponentsTurn');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user