공백지를 고려하지 않는 버그 수정

This commit is contained in:
2020-01-04 03:26:50 +09:00
parent 800d4f6cc9
commit 7c1baa6cf1
+2 -1
View File
@@ -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 도시 중 공격 대상이 있는가 확인