Skip to content

Commit

Permalink
PPather: Remove SparseMatrix3D
Browse files Browse the repository at this point in the history
  • Loading branch information
Xian55 committed Dec 5, 2023
1 parent 6b0deff commit c056497
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
29 changes: 0 additions & 29 deletions PPather/Triangles/Data/SparseMatrix3D.cs

This file was deleted.

9 changes: 1 addition & 8 deletions PPather/Triangles/MPQTriangleSupplier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Copyright Pontus Borg 2008
using static Wmo.MapTileFile;
using PPather;
using System.Runtime.CompilerServices;
using System.Collections.Generic;

namespace WowTriangles;

Expand Down Expand Up @@ -99,17 +100,9 @@ private void GetChunkData(TriangleCollection triangles, int chunk_x, int chunk_y
}

// Map Tile - World objects
SparseMatrix3D<WMO> instances = new();
for (int i = 0; i < mapTile.wmois.Length; i++)
{
WMOInstance wi = mapTile.wmois[i];
// TODO: check if this ever get hit
if (instances.ContainsKey((int)wi.pos.X, (int)wi.pos.Y, (int)wi.pos.Z))
{
continue;
}

instances.Add((int)wi.pos.X, (int)wi.pos.Y, (int)wi.pos.Z, wi.wmo);
AddTriangles(triangles, wi);
}

Expand Down

0 comments on commit c056497

Please sign in to comment.