From 17ab3d39c989c0a3ec54c97fc34b2d29f9b8dbe2 Mon Sep 17 00:00:00 2001 From: Ihnatus Date: Tue, 8 Nov 2022 20:43:37 +0300 Subject: [PATCH] Fix "can't build X now" ignoring city tile See OSDN#45982 Signed-off-by: Ihnatus --- server/cityturn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/cityturn.c b/server/cityturn.c index a1b5b72034..88beef4edf 100644 --- a/server/cityturn.c +++ b/server/cityturn.c @@ -1113,8 +1113,8 @@ static bool worklist_item_postpone_req_vec(struct universal *target, signal_name = "building_cant_be_built"; requirement_vector_iterate(build_reqs, preq) { - if (!is_req_active(pplayer, NULL, pcity, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, preq, RPT_POSSIBLE)) { + if (!is_req_active(pplayer, NULL, pcity, NULL, city_tile(pcity), NULL, + NULL, NULL, NULL, NULL, preq, RPT_POSSIBLE)) { known = TRUE; switch (preq->source.kind) { case VUT_ADVANCE: -- 2.34.1