방랑군 상태에서 세력 도시 클릭 불가. 인사부 가능.

설치시 운영자 삭턴
시나리오 29 재 디자인
지도에서 로그인 유저 검사
This commit is contained in:
2018-04-21 22:43:46 +09:00
parent bf746393b8
commit 598943eb1b
4 changed files with 682 additions and 677 deletions
+12 -7
View File
@@ -51,7 +51,7 @@ function getWorldMap($req){
}
$session = Session::getInstance();
$generalID = $session->generalID;
$userID = $session->userID;
$db = DB::db();
@@ -60,13 +60,18 @@ function getWorldMap($req){
$year = Util::toInt($game['year']);
$month = Util::toInt($game['month']);
if($generalID && ($req->showMe || !$req->neutralView)){
$city = $db->queryFirstRow(
'select `city`, `nation` from `general` where `no`=%i',
$generalID);
$general = $db->queryFirstRow(
'select `no`, `city`, `nation` from `general` where `owner`=%i',
$userID);
$myCity = Util::toInt($city['city']);
$myNation = Util::toInt($city['nation']);
if($general && ($req->showMe || !$req->neutralView)){
if($session->generalID !== $general['no']){
$session->logoutGame()->loginGame();
}
$myCity = Util::toInt($general['city']);
$myNation = Util::toInt($general['nation']);
if(!$req->showMe){
$myCity = null;