mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Zones/Locations
* fixed Quick Info defaulting expansion maps to have [0, 0, 0] as parent * corrected looking for custom excluded flag when collecting instances for area
This commit is contained in:
@@ -109,7 +109,7 @@ class ZonePage extends GenericPage
|
||||
}
|
||||
|
||||
// Instances
|
||||
if ($_ = DB::Aowow()->selectCol('SELECT id FROM ?_zones WHERE parentAreaId = ?d AND (flags & ?d) = 0', $this->typeId, CUSTOM_EXCLUDE_FOR_LISTVIEW))
|
||||
if ($_ = DB::Aowow()->selectCol('SELECT `id` FROM ?_zones WHERE `parentAreaId` = ?d AND (`cuFlags` & ?d) = 0', $this->typeId, CUSTOM_EXCLUDE_FOR_LISTVIEW))
|
||||
{
|
||||
$this->extendGlobalIds(TYPE_ZONE, ...$_);
|
||||
$infobox[] = Lang::maps('Instances').Lang::main('colon')."\n[zone=".implode("], \n[zone=", $_).']';
|
||||
|
||||
@@ -115,7 +115,7 @@ SqlGen::register(new class extends SetupScript
|
||||
|
||||
foreach ($baseData as &$bd)
|
||||
{
|
||||
if (!in_array($bd['parentMapId'], [0, 1, 530, 571]))
|
||||
if (in_array($bd['mapBak'], [0, 1, 530, 571]))
|
||||
continue;
|
||||
|
||||
if ($gPos = Game::worldPosToZonePos($bd['parentMapId'], $bd['parentY'], $bd['parentX']))
|
||||
|
||||
Reference in New Issue
Block a user