mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- removed unnessecary limit from displayed creatures/objects per zone
- check if g_pageInfo exists, before attempting to overwrite it
This commit is contained in:
@@ -170,7 +170,7 @@ class ZonePage extends GenericPage
|
||||
$oSpawns = DB::Aowow()->select('SELECT * FROM ?_spawns WHERE areaId = ?d AND type = ?d', $this->typeId, TYPE_OBJECT);
|
||||
$cSpawns = DB::Aowow()->select('SELECT * FROM ?_spawns WHERE areaId = ?d AND type = ?d', $this->typeId, TYPE_NPC);
|
||||
|
||||
$conditions = [['s.areaId', $this->typeId]];
|
||||
$conditions = [CFG_SQL_LIMIT_NONE, ['s.areaId', $this->typeId]];
|
||||
if (!User::isInGroup(U_GROUP_STAFF))
|
||||
$conditions[] = [['cuFlags', CUSTOM_EXCLUDE_FOR_LISTVIEW, '&'], 0];
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ elseif (!empty($this->map['data'])):
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
<?php
|
||||
if (!empty($this->map['data']['zone'])):
|
||||
echo " $.extend(g_pageInfo, {id: ".$this->map['data']['zone']."});\n";
|
||||
echo " ".(!empty($this->gPageInfo) ? "$.extend(g_pageInfo, {id: ".$this->map['data']['zone']."})" : "var g_pageInfo = {id: ".$this->map['data']['zone']."}").";\n";
|
||||
elseif (!empty($this->map['mapperData'])):
|
||||
echo " var g_mapperData = ".json_encode($this->map['mapperData'], JSON_NUMERIC_CHECK).";\n";
|
||||
endif;
|
||||
|
||||
Reference in New Issue
Block a user