Skip to content

Commit

Permalink
fix brush.lst loader for 4.8 test maps
Browse files Browse the repository at this point in the history
  • Loading branch information
sort committed May 20, 2020
1 parent 321747f commit ceba526
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Common/FileFormats/BrushLstLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private void Load(BinaryReader meshInputStream)

int meshDataBlockSz = meshInputStream.ReadInt32();

if (meshDataBlockSz < 17 || meshDataBlockSz > 19)
if (meshDataBlockSz < 16 || meshDataBlockSz > 19)
{
throw new InvalidOperationException("unexpected block size");
}
Expand Down Expand Up @@ -176,10 +176,7 @@ private void Load(BinaryReader meshInputStream)

meshInputStream.ReadInt32(); // always 3?


meshInputStream.ReadInt32(); // 0 - unknown

meshInputStream.ReadBytes(4 * (meshDataBlockSz - 17));
meshInputStream.ReadBytes(4 * (meshDataBlockSz - 16));

//if (b != 0)
// Debug.WriteLine($"meshIdx:{meshData.meshIdx} value:{b} {brushInfoList[meshData.meshIdx].filename}");
Expand Down

0 comments on commit ceba526

Please sign in to comment.