global 변수로 지정된 값을 GameConst의 형태로 변경중

This commit is contained in:
2018-02-04 16:53:01 +09:00
parent c914fd2aa8
commit ecca899a82
7 changed files with 37 additions and 51 deletions
+3 -4
View File
@@ -2027,8 +2027,8 @@ function msgprint($connect, $msg, $name, $picture, $imgsvr, $when, $num, $type)
}
function banner() {
global $_version, $_banner, $_helper;
echo "<font size=2>$_version / $_banner <br> $_helper</font>";
echo "<font size=2>".GameConst::version." / ".GameConst::banner." <br> ".GameConst::helper."</font>";
}
function addTurn($date, $turnterm=1) {
@@ -3577,9 +3577,8 @@ function uniqueItem($connect, $general, $log, $vote=0) {
}
function checkAbility($connect, $general, $log) {
global $_upgradeLimit;
$limit = $_upgradeLimit;
$limit = GameConst::upgradeLimit;
$query = "select no,leader,leader2,power,power2,intel,intel2 from general where no='{$general['no']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");