Ещё немного уборки мусора.
This commit is contained in:
@@ -40,7 +40,7 @@ class fbattle
|
||||
|
||||
function __construct($battle_id)
|
||||
{
|
||||
global $mysql, $user, $_POST, $cavedata, $caverooms, $cavebots, $party;
|
||||
global $mysql, $user, $_POST, $cavedata, $cavebots, $party;
|
||||
// соединяем мускуль и юзера
|
||||
$this->mysql = $mysql;
|
||||
$this->user = $user;
|
||||
@@ -1219,7 +1219,7 @@ class fbattle
|
||||
function battle_end()
|
||||
{
|
||||
/////////////OPITO MODIFIKATORIUS: 1-100; 2 - 200; 3 - 300 ir tt.
|
||||
global $opoitas, $caverooms, $user, $cavebots, $party, $rep;
|
||||
global $opoitas, $user, $cavebots, $party, $rep;
|
||||
$ddd = mysql_fetch_array(mysql_query("SELECT * FROM `effects` WHERE `owner` = " . $user['id'] . " and `type` = 555 limit 1;"));
|
||||
if ($ddd) {
|
||||
$opitas = 1.1;
|
||||
@@ -1701,7 +1701,7 @@ class fbattle
|
||||
}
|
||||
|
||||
|
||||
if (in_array($user['room'], $caverooms)) {
|
||||
if (in_array($user['room'], Config::$caverooms)) {
|
||||
$location = mysql_fetch_array(mysql_query("SELECT `x`, `y`, `dir` FROM `caveparties` WHERE `user` = '" . $this->user['id'] . "' LIMIT 1"));
|
||||
|
||||
if ($location['dir'] == 0) {
|
||||
|
||||
Reference in New Issue
Block a user