From f5c280ee44e1357c7c2c06ba646ccfc6ee89e304 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 14 Oct 2010 13:28:06 +0200 Subject: [PATCH] Moggy group_2lib_check(): Take tag argument explicitly --- playout/moggy.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/playout/moggy.c b/playout/moggy.c index 787b34e..66be7d9 100644 --- a/playout/moggy.c +++ b/playout/moggy.c @@ -304,7 +304,7 @@ miai_2lib(struct board *b, group_t group, enum stone color) static void check_group_atari(struct board *b, group_t group, enum stone owner, - enum stone to_play, struct move_queue *q) + enum stone to_play, struct move_queue *q, int tag) { for (int i = 0; i < 2; i++) { coord_t lib = board_group_info(b, group).lib[i]; @@ -350,13 +350,13 @@ check_group_atari(struct board *b, group_t group, enum stone owner, continue; /* Tasty! Crispy! Good! */ - mq_add(q, lib, 1<coord)).libs == 2) { - group_2lib_check(b, group_at(b, m->coord), stone_other(m->color), q); + group_2lib_check(b, group_at(b, m->coord), stone_other(m->color), q, 1<color), q); + group_2lib_check(b, g, stone_other(m->color), q, 1<atarirate) return; - group_2lib_check(b, g, map->to_play, &q); + group_2lib_check(b, g, map->to_play, &q, 0); while (q.moves--) { coord_t coord = q.move[q.moves]; if (PLDEBUGL(5)) -- 2.11.4.GIT