From 941a9f5e2950cdb27b50baac1d3427d2511dc3a1 Mon Sep 17 00:00:00 2001 From: ikpil Date: Tue, 31 Dec 2024 17:11:36 +0900 Subject: [PATCH] [upstream] Disable calls to isfinite when compiling with -ffast-math (recastnavigation 747) - https://github.com/recastnavigation/recastnavigation/pull/747 --- src/DotRecast.Detour.TileCache/DtTileCacheBuilder.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/DotRecast.Detour.TileCache/DtTileCacheBuilder.cs b/src/DotRecast.Detour.TileCache/DtTileCacheBuilder.cs index 1bb5cd12..0d5437ca 100644 --- a/src/DotRecast.Detour.TileCache/DtTileCacheBuilder.cs +++ b/src/DotRecast.Detour.TileCache/DtTileCacheBuilder.cs @@ -1395,17 +1395,6 @@ public static void RemoveVertex(DtTileCachePolyMesh mesh, int rem, int maxTris) { // Count number of polygons to remove. int maxVertsPerPoly = mesh.nvp; - int numRemovedVerts = 0; - for (int i = 0; i < mesh.npolys; ++i) - { - int p = i * maxVertsPerPoly * 2; - int nv = CountPolyVerts(mesh.polys, p, maxVertsPerPoly); - for (int j = 0; j < nv; ++j) - { - if (mesh.polys[p + j] == rem) - numRemovedVerts++; - } - } int nedges = 0; List edges = new List();