mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 15:52:33 +08:00
Menyoo import to ymap, Scenario accel grid ExtendedRange bits
This commit is contained in:
+19
-1
@@ -986,15 +986,33 @@ namespace CodeWalker.World
|
||||
List<ushort> newids = new List<ushort>();
|
||||
foreach (var cell in cells)
|
||||
{
|
||||
bool flag = false;
|
||||
if (cell != null)
|
||||
{
|
||||
newpoints.AddRange(cell);
|
||||
foreach (var point in cell)
|
||||
{
|
||||
if ((point.Flags & Unk_700327466.ExtendedRange) > 0)
|
||||
{
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
newids.Add((ushort)newpoints.Count);
|
||||
|
||||
ushort cid = (ushort)newpoints.Count;
|
||||
if (flag)
|
||||
{
|
||||
cid += 32768; //any cells with extended range points have this bit set.
|
||||
}
|
||||
|
||||
newids.Add(cid);
|
||||
}
|
||||
|
||||
Region.Unk_3844724227 = newids.ToArray();
|
||||
|
||||
|
||||
|
||||
|
||||
rage__spdGrid2D grid = new rage__spdGrid2D();
|
||||
grid.Unk_X_2690909759 = cellsize;
|
||||
grid.Unk_Y_3691675019 = cellsize;
|
||||
|
||||
Reference in New Issue
Block a user