Menyoo import to ymap, Scenario accel grid ExtendedRange bits

This commit is contained in:
dexyfex
2017-09-25 03:45:30 +10:00
Unverified
parent dc9084fc30
commit 1a2af6af9e
8 changed files with 471 additions and 21 deletions
+19 -1
View File
@@ -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;