건국 버그 수정

This commit is contained in:
2018-04-21 23:08:51 +09:00
parent 598943eb1b
commit 131a6cb6c3
2 changed files with 2 additions and 16 deletions
+1 -15
View File
@@ -19,24 +19,10 @@ extractMissingPostToGlobals();
increaseRefresh("턴입력", 1);
if(!$turn || $commandtype === null){
header('location:./');
header('location:commandlist.php');
die();
}
$query = "select conlimit from game limit 1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$admin = MYDB_fetch_array($result);
$query = "select no,name,nation,con from general where owner='{$userID}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
$con = checkLimit($me['con'], $admin['conlimit']);
if($con >= 2) {
header('location:./');
exit();
}
$count = count($turn);
for($i=0; $i < $count; $i++) {
if($turn[$i] == 100 || $turn[$i] == 99 || $turn[$i] == 98) {
+1 -1
View File
@@ -1552,7 +1552,7 @@ function command_46($turn, $command) {
continue;
}
if(isset($nationcolor[$nation['color']])){
if(!isset($nationcolor[$nation['color']])){
$nationcolor[$nation['color']] = 1;
}
else{