v0.7.3까지 반영 #114

Closed
Hide_D wants to merge 310 commits from devel into master
Showing only changes of commit beea13ff4b - Show all commits
+4 -1
View File
@@ -257,12 +257,15 @@ function checkSupply() {
}
$queue = new \SplQueue();
foreach(getAllNationStaticInfo() as $nation){
foreach($db->query('SELECT capital, nation FROM nation WHERE `level` > 0') as $nation){
$capitalID = $nation['capital'];
if(!$capitalID){
continue;
}
$city = &$cities[$capitalID];
if($nation['nation'] != $city['nation']){
continue;
}
$city['supply'] = true;
$queue->enqueue($city['id']);
}