Ещё немного уборки мусора.

This commit is contained in:
lopar
2020-08-30 19:28:15 +03:00
parent c5a7dc4b58
commit 83832ecd2c
34 changed files with 458 additions and 636 deletions
+3 -3
View File
@@ -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) {