diff --git a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp index e025e45d..d79d728c 100644 --- a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp +++ b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp @@ -1085,23 +1085,12 @@ const dtMeshTile* dtNavMesh::getTileAt(const int x, const int y, const int layer } return 0; } -#define FLIP_NEIGHBOURS 0 + int dtNavMesh::getNeighbourTilesAt(const int x, const int y, const int side, dtMeshTile** tiles, const int maxTiles) const { int nx = x, ny = y; switch (side) - { -#if FLIP_NEIGHBOURS - case 0: nx--; break; - case 1: nx--; ny++; break; - case 2: ny++; break; - case 3: nx++; ny++; break; - case 4: nx++; break; - case 5: nx++; ny--; break; - case 6: ny--; break; - case 7: nx--; ny--; break; -#else - + { case 0: nx++; break; case 1: nx++; ny++; break; case 2: ny++; break; @@ -1110,7 +1099,6 @@ int dtNavMesh::getNeighbourTilesAt(const int x, const int y, const int side, dtM case 5: nx--; ny--; break; case 6: ny--; break; case 7: nx++; ny--; break; -#endif }; return getTilesAt(nx, ny, tiles, maxTiles);