Index: engine/board.c =================================================================== RCS file: /cvsroot/gnugo/gnugo/engine/board.c,v retrieving revision 1.111 diff -u -p -r1.111 board.c --- engine/board.c 12 Jun 2005 09:34:13 -0000 1.111 +++ engine/board.c 2 Sep 2005 15:33:54 -0000 @@ -1248,13 +1248,7 @@ komaster_trymove(int pos, int color, con *is_conditional_ko = 0; ko_move = is_ko(pos, color, &kpos); - if (!ko_move) { - if (komaster == WEAK_KO) { - set_new_komaster(EMPTY); - set_new_kom_pos(NO_MOVE); - } - } - else { + if (ko_move) { /* If opponent is komaster we may not capture his ko. */ if (komaster == other && pos == kom_pos) return 0; @@ -1293,8 +1287,13 @@ komaster_trymove(int pos, int color, con } } - if (!ko_move) + if (!ko_move) { + if (komaster == WEAK_KO) { + set_new_komaster(EMPTY); + set_new_kom_pos(NO_MOVE); + } return 1; + } if (komaster == other) { if (color == WHITE)