From e225ce339fa0f3b1cef31047c51ece1a560ced9e Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 18 Jul 2023 07:20:39 +0300 Subject: [PATCH 13/13] AI: Fix threaded AI build See osdn #48413 Signed-off-by: Marko Lindqvist --- ai/threaded/taicity.c | 2 +- ai/threaded/threadedai.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ai/threaded/taicity.c b/ai/threaded/taicity.c index 6042710e89..96622ec0b6 100644 --- a/ai/threaded/taicity.c +++ b/ai/threaded/taicity.c @@ -313,7 +313,7 @@ static void tai_tile_worker_task_select(struct player *pplayer, } } - extra = adv_settlers_road_bonus(ptile, proad) * mc_multiplier / mc_divisor; + extra = adv_settlers_road_bonus(&(wld.map), ptile, proad) * mc_multiplier / mc_divisor; if (removing) { extra = -extra; diff --git a/ai/threaded/threadedai.c b/ai/threaded/threadedai.c index fc8307a564..64a6329a19 100644 --- a/ai/threaded/threadedai.c +++ b/ai/threaded/threadedai.c @@ -387,7 +387,7 @@ static void twai_auto_settler_run(struct player *pplayer, struct unit *punit, struct settlermap *state) { TAI_AIT; - TAI_DFUNC(dai_auto_settler_run, pplayer, punit, state); + TAI_DFUNC(dai_auto_settler_run, &(wld.map), pplayer, punit, state); } /**********************************************************************//** @@ -397,7 +397,7 @@ static void twai_auto_settler_cont(struct player *pplayer, struct unit *punit, struct settlermap *state) { TAI_AIT; - TAI_DFUNC(dai_auto_settler_cont, pplayer, punit, state); + TAI_DFUNC(dai_auto_settler_cont, &(wld.map), pplayer, punit, state); } /**********************************************************************//** -- 2.40.1