Ещё немного уборки мусора.
This commit is contained in:
+3
-3
@@ -50,7 +50,7 @@ if($_GET['ext'] == 1) {
|
||||
}
|
||||
|
||||
|
||||
if(in_array($user['room'], $canalenters)) {
|
||||
if(in_array($user['room'], Config::$canalenters)) {
|
||||
$podzemroom = $user['room']+1;
|
||||
$cavedata = array(620 => array('x1' => 3, 'y1' => 2, 'dir1' => 2));
|
||||
$podzemdata = array(621 => array('name1' => 'Проклятый Рудник', 'name2' => 'Проклятого Рудника'));
|
||||
@@ -283,7 +283,7 @@ if($_GET['add']) {
|
||||
}
|
||||
|
||||
$den = mysql_query("SELECT `id` FROM `vxodd` WHERE `glav_id` = '".$_GET['naw_id']."'");
|
||||
if(mysql_num_rows($den) >= (in_array($user['room']+1, $caverooms)?5:4)) {
|
||||
if(mysql_num_rows($den) >= (in_array($user['room']+1, Config::$caverooms)?5:4)) {
|
||||
echo "<script>location.href='?warning=5'</script>";
|
||||
exit();
|
||||
}
|
||||
@@ -331,7 +331,7 @@ if($_GET['add']) {
|
||||
}
|
||||
|
||||
if($_GET['start']){
|
||||
if(in_array($user['room']+1, $caverooms)) {
|
||||
if(in_array($user['room']+1, Config::$caverooms)) {
|
||||
$nc = 1;
|
||||
$locs = array();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user