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

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
@@ -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();
}