외교 서신, 등용장 수락시 올바르지 않을 경우 alert

건국 시 장수 이름과 같아도 건국 가능하도록 변경
This commit is contained in:
2018-04-27 23:08:55 +09:00
parent a2d3ac9e70
commit 647c51fe0f
5 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -568,7 +568,7 @@ function process_46(&$general) {
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gencount = MYDB_num_rows($result);
$query = "select nation from nation where name='{$general['makenation']}'";
$query = "select nation from nation where nation!={$general['nation']} AND name='{$general['makenation']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$nationcount = MYDB_num_rows($result);