건국 버그 수정
This commit is contained in:
+1
-15
@@ -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
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user