mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 17:05:10 +08:00
Fixed some items not being loaded into world map data store
This commit is contained in:
@@ -625,23 +625,6 @@ namespace CodeWalker.GameFiles
|
||||
}
|
||||
}
|
||||
|
||||
public void GetVisibleChildren(ref Vector3 p, List<MapDataStoreNode> items)
|
||||
{
|
||||
if (Children == null) return;
|
||||
for (int i = 0; i < Children.Length; i++)
|
||||
{
|
||||
var c = Children[i];
|
||||
if (c == null) continue;
|
||||
var cmin = c.streamingExtentsMin;
|
||||
var cmax = c.streamingExtentsMax;
|
||||
if ((p.X >= cmin.X) && (p.X <= cmax.X) && (p.Y >= cmin.Y) && (p.Y <= cmax.Y))
|
||||
{
|
||||
items.Add(c);
|
||||
c.GetVisibleChildren(ref p, items);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Name.ToString() + ", " +
|
||||
|
||||
Reference in New Issue
Block a user