1턴에 어쩌다 휴식턴이 입력되는 버그 수정
This commit is contained in:
@@ -14,11 +14,9 @@ $turn = Util::getReq('turn', 'array_int');
|
|||||||
$sel = Util::getReq('sel', 'int');
|
$sel = Util::getReq('sel', 'int');
|
||||||
$commandtype = Util::getReq('commandtype', 'int');
|
$commandtype = Util::getReq('commandtype', 'int');
|
||||||
|
|
||||||
extractMissingPostToGlobals();
|
|
||||||
|
|
||||||
increaseRefresh("턴입력", 1);
|
increaseRefresh("턴입력", 1);
|
||||||
|
|
||||||
if(!$turn || $commandtype === null){
|
if(!$turn || $commandtype === null || $sel === null){
|
||||||
header('location:commandlist.php');
|
header('location:commandlist.php');
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-3
@@ -5,10 +5,13 @@ include "lib.php";
|
|||||||
include "func.php";
|
include "func.php";
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
|
|
||||||
$commandtype = Util::getReq('commandtype', 'int', 0);
|
$commandtype = Util::getReq('commandtype', 'int');
|
||||||
$turn = Util::getReq('turn', 'array_int', [0]);
|
$turn = Util::getReq('turn', 'array_int');
|
||||||
|
|
||||||
extractMissingPostToGlobals();
|
if(!$turn || $commandtype === null){
|
||||||
|
header('location:commandlist.php');
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user