From ee4ddd563d4ed12d520ecdd2914b553d52345600 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 26 Mar 2010 21:16:52 +0100 Subject: [PATCH] Suppress background observe for boards with own game number This is really a work-around for an ICS bug. The Variant-ICS sent the initial board of a game in a move list with relation = 0, which means 'observed'. So XBoard was thinking it was observing its own game, and switched to dual board. It seems harmless to suppress such a switch for all boards of your own game, however, which is now done. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index c58c091..9b60f38 100644 --- a/backend.c +++ b/backend.c @@ -3842,7 +3842,7 @@ ParseBoard12(string) } if((gameMode == IcsPlayingWhite || gameMode == IcsPlayingBlack) - && newGameMode == IcsObserving && appData.bgObserve) { + && newGameMode == IcsObserving && gamenum != ics_gamenum && appData.bgObserve) { // [HGM] bughouse: don't act on alien boards while we play. Just parse the board and save it */ char *toSqr; for (k = 0; k < ranks; k++) { -- 1.7.0.4