From 6ec3ca4c911dc82f5bcaf270fc98585f5e973c09 Mon Sep 17 00:00:00 2001 From: Jean-loup Gailly Date: Mon, 8 Mar 2010 11:54:52 +0100 Subject: [PATCH] If slave has never seen boardsize or clear_board, ask for whole history (to get timing info and my_color) even if move == 0. --- uct/uct.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uct/uct.c b/uct/uct.c index 79f2c39..4aed225 100644 --- a/uct/uct.c +++ b/uct/uct.c @@ -148,7 +148,8 @@ uct_notify(struct engine *e, struct board *b, int id, char *cmd, char *args, cha /* Force resending the whole command history if we are out of sync * but do it only once, not if already getting the history. */ - if (move_number(id) != b->moves && !reply_disabled(id) && !is_reset(cmd)) { + if ((move_number(id) != b->moves || !b->size) + && !reply_disabled(id) && !is_reset(cmd)) { if (UDEBUGL(0)) fprintf(stderr, "Out of sync, id %d, move %d\n", id, b->moves); static char buf[128]; -- 2.11.4.GIT