Skip to content

Commit

Permalink
Fix capture detection for spectators a s well
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Nov 16, 2024
1 parent 9317de0 commit 487a1ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/roundCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,10 @@ export class RoundController extends GameController {
this.clocks[oppclock].start();
}
}
// This is needed for above capture detection
if (this.ffishBoard) {
this.ffishBoard.setFen(this.fullfen);
}
} else {
if (this.turnColor === this.mycolor) {
if (latestPly) {
Expand Down

0 comments on commit 487a1ba

Please sign in to comment.