diff --git a/hwe/preprocessing.php b/hwe/preprocessing.php index 3bc5ecb5..8f807e08 100644 --- a/hwe/preprocessing.php +++ b/hwe/preprocessing.php @@ -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) { diff --git a/hwe/processing.php b/hwe/processing.php index ff27ec54..a28bf6e5 100644 --- a/hwe/processing.php +++ b/hwe/processing.php @@ -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{