From 519b14845148bba682b0b51d68d5068d73889938 Mon Sep 17 00:00:00 2001 From: Kromster80 Date: Mon, 10 Nov 2014 15:06:43 +0300 Subject: [PATCH] Update RecastContour.cpp --- Recast/Source/RecastContour.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Recast/Source/RecastContour.cpp b/Recast/Source/RecastContour.cpp index 8aa9d1d..a7be669 100644 --- a/Recast/Source/RecastContour.cpp +++ b/Recast/Source/RecastContour.cpp @@ -464,7 +464,7 @@ static int calcAreaOfPolygon2D(const int* verts, const int nverts) } // TODO: these are the same as in RecastMesh.cpp, consider using the same. - +// Last time I checked the if version got compiled using cmov, which was a lot faster than module (with idiv). inline int prev(int i, int n) { return i-1 >= 0 ? i-1 : n-1; } inline int next(int i, int n) { return i+1 < n ? i+1 : 0; }