Зачем-то инкапсулирем.
This commit is contained in:
@@ -421,7 +421,7 @@ class fbattle
|
||||
addActions(time(), 'win_fiz', 0, $this->user['id']);
|
||||
}
|
||||
|
||||
if (in_array($user->room, Config::$caverooms)) {
|
||||
if (in_array($user->getRoom(), 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) {
|
||||
$y = $location['y'] * 2;
|
||||
@@ -451,7 +451,7 @@ class fbattle
|
||||
$winers .= implode("</B>, <B>", $this->t2);
|
||||
$lomka = $this->t1;
|
||||
} else {
|
||||
if (in_array($user->room, Config::$caverooms)) {
|
||||
if (in_array($user->getRoom(), 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) {
|
||||
$y = $location['y'] * 2;
|
||||
|
||||
Reference in New Issue
Block a user