From: H.G. Muller Date: Mon, 26 Sep 2011 13:44:23 +0000 (+0200) Subject: Suppress playing of book moves with weight 0 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=35467b2a732c657950558ace3007a07ca1270384;p=xboard.git Suppress playing of book moves with weight 0 Bookmoves with weight 0 could be played when the sum of the weights of all moves from the position was 0. So it was not possible to suppress the only move by giving it weight 0. This is now corrected. --- diff --git a/book.c b/book.c index 3650b01..4f389ac 100644 --- a/book.c +++ b/book.c @@ -534,6 +534,7 @@ char *ProbeBook(int moveNr, char *book) for(i=0; i> 12; // create random < total_weight total_weight = 0; for(i=0; i