SetNationFront 버그 수정
This commit is contained in:
@@ -207,7 +207,10 @@ function SetNationFront($nationNo) {
|
|||||||
$adj = [];
|
$adj = [];
|
||||||
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$warNations = $db->queryFirstColumn('SELECT you from diplomacy where me = %i and (state=0 or (state=1 and term<=3))');
|
$warNations = $db->queryFirstColumn(
|
||||||
|
'SELECT you from diplomacy where me = %i and (state=0 or (state=1 and term<=3))'
|
||||||
|
, $nationNo
|
||||||
|
);
|
||||||
if($warNations) {
|
if($warNations) {
|
||||||
foreach($warNations as $warNation){
|
foreach($warNations as $warNation){
|
||||||
$enemyCities = $db->queryFirstColumn('SELECT city from city where nation=%i', $warNation);
|
$enemyCities = $db->queryFirstColumn('SELECT city from city where nation=%i', $warNation);
|
||||||
|
|||||||
Reference in New Issue
Block a user