진짜로 삭턴 버그 수정

This commit is contained in:
2019-09-21 02:44:00 +09:00
parent af6c3f466d
commit 4d8ecf4191
2 changed files with 8 additions and 9 deletions
+3 -1
View File
@@ -260,7 +260,7 @@ function SetCrew($no, $nationID, $personal, $gold, $leader, $genType, $tech, $de
return;
}
function processAI($no) {
function processAI($no, &$reduce_turn) {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
@@ -339,6 +339,8 @@ function processAI($no) {
return;
}
$reduce_turn = true;
$allowedAction = new AIAllowedAction($general['npc'], $autorun_user['options']??[]);
$query = "select city,region,nation,level,path,rate,gen1,gen2,gen3,pop,supply,front from city where city='{$general['city']}'";