From 1381ab113e10a1da9fe7aacfaba2eb6ebbeedfef Mon Sep 17 00:00:00 2001 From: Kromster80 Date: Mon, 10 Nov 2014 15:08:53 +0300 Subject: [PATCH] Update DetourTileCacheBuilder.cpp --- DetourTileCache/Source/DetourTileCacheBuilder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/DetourTileCache/Source/DetourTileCacheBuilder.cpp b/DetourTileCache/Source/DetourTileCacheBuilder.cpp index d6602b7..2c82cf0 100644 --- a/DetourTileCache/Source/DetourTileCacheBuilder.cpp +++ b/DetourTileCache/Source/DetourTileCacheBuilder.cpp @@ -1068,6 +1068,7 @@ static bool buildMeshAdjacency(dtTileCacheAlloc* alloc, } +// 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; }