From a4744dd5e0adfa8a155f90b4ed687f22fa842200 Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Wed, 10 Feb 2021 13:07:04 +0100 Subject: [PATCH] autoexplorer: stop desiring hut frightening. Only give an extra score to a tile with a hut if it can be entered rather than frightened. Bug reported as a FIXME in the source code by Alexandro Ignatiev or by Marko Lindqvist See osdn #41554 --- server/advisors/autoexplorer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/advisors/autoexplorer.c b/server/advisors/autoexplorer.c index 8875c512f2..7c1dc49e58 100644 --- a/server/advisors/autoexplorer.c +++ b/server/advisors/autoexplorer.c @@ -251,10 +251,9 @@ static int explorer_desirable(struct tile *ptile, struct player *pplayer, if ((!is_ai(pplayer) || !has_handicap(pplayer, H_HUTS)) && map_is_known(ptile, pplayer) - && unit_can_displace_hut(punit, ptile)) { + && unit_can_enter_hut(punit, ptile)) { /* we want to explore huts whenever we can, * even if doing so will not uncover any tiles. */ - /* FIXME: should HUT_FRIGHTEN explorer strive to destroy huts? */ desirable += HUT_SCORE; } -- 2.20.1