Update DetourTileCacheBuilder.cpp
This commit is contained in:
parent
d9652b362e
commit
1381ab113e
@ -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 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; }
|
inline int next(int i, int n) { return i+1 < n ? i+1 : 0; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user