From 7c1baa6cf17c8c9de889dc154e489a8bb39b1561 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 4 Jan 2020 03:26:50 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=B5=EB=B0=B1=EC=A7=80=EB=A5=BC=20?= =?UTF-8?q?=EA=B3=A0=EB=A0=A4=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_process.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hwe/func_process.php b/hwe/func_process.php index cc34f62c..3526c62a 100644 --- a/hwe/func_process.php +++ b/hwe/func_process.php @@ -1332,6 +1332,7 @@ function process_16(&$general) { $allowedNationList = $db->queryFirstColumn('SELECT you FROM diplomacy WHERE state = 0 AND me = %i', $general['nation']); $allowedNationList[] = $general['nation']; + $allowedNationList[] = 0; $distanceList = searchDistanceListToDest($general['city'], $finalTarget, $allowedNationList); @@ -1343,7 +1344,7 @@ function process_16(&$general) { $candidateCities = []; - $minDist = array_key_first($distanceList); + $minDist = \array_key_first($distanceList); do { //1: 최단 거리 도시 중 공격 대상이 있는가 확인 //2: 최단 거리 + 1 도시 중 공격 대상이 있는가 확인