aboutsummaryrefslogtreecommitdiff
path: root/dep/recastnavigation/Detour/Source/DetourNavMesh.cpp
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-01-26 19:44:50 +0100
committerShauren <shauren.trinity@gmail.com>2021-11-22 00:17:11 +0100
commitcb8b6370612e6684b3b3fbdb4a08f8ec21d51f3e (patch)
tree5c92922f659b434a759d755eb860d3dfe3e7a9ad /dep/recastnavigation/Detour/Source/DetourNavMesh.cpp
parentb6c9ebec715d7e7d25de909f55abfd88a5941deb (diff)
Dep/Recast: Update recastnavigation to https://github.com/recastnavigation/recastnavigation/commit/14b2631527c4792e95b2c78ebfa8ac4cd3413363
Rebuilding mmaps IS required (cherry picked from commit 5ff88ea04aec4677f1c1d669674e5442288a25e3)
Diffstat (limited to 'dep/recastnavigation/Detour/Source/DetourNavMesh.cpp')
-rw-r--r--dep/recastnavigation/Detour/Source/DetourNavMesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dep/recastnavigation/Detour/Source/DetourNavMesh.cpp b/dep/recastnavigation/Detour/Source/DetourNavMesh.cpp
index b81a2567b2e..17df26d8c07 100644
--- a/dep/recastnavigation/Detour/Source/DetourNavMesh.cpp
+++ b/dep/recastnavigation/Detour/Source/DetourNavMesh.cpp
@@ -855,7 +855,7 @@ dtStatus dtNavMesh::addTile(unsigned char* data, int dataSize, int flags,
// Make sure the location is free.
if (getTileAt(header->x, header->y, header->layer))
- return DT_FAILURE;
+ return DT_FAILURE | DT_ALREADY_OCCUPIED;
// Allocate a tile.
dtMeshTile* tile = 0;