Don't disturb background observe when receiving new piece
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 20 Feb 2010 14:39:29 +0000 (15:39 +0100)
committerArun Persaud <arun@nubati.net>
Mon, 22 Feb 2010 02:35:49 +0000 (18:35 -0800)
When new holdings are sent when the background game is displayed, we now
ignore this, as presumably we are peeking at our partners game, and thus
should be well aware of what is captured there.

backend.c

index 18d48ce..00b2d0e 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -3647,7 +3647,7 @@ read_from_ics(isr, closure, data, count, error)
                                    gameInfo.white, white_holding,
                                    gameInfo.black, black_holding);
                        }
-
+                       if(!partnerUp) // [HGM] bughouse: when peeking at partner game we already know what he captured...
                         DrawPosition(FALSE, boards[currentMove]);
                        DisplayTitle(str);
                      } else if(appData.bgObserve) { // [HGM] bughouse: holdings of other game => background