1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-03 21:09:41 +00:00

Do not check getPolyHeight status

It may fail in some cases depending on a platform without obvious reason.
This commit is contained in:
elsid 2022-08-24 23:12:16 +02:00
parent e0dbe976bc
commit ab1ddc690e
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
7 changed files with 3 additions and 10 deletions

View file

@ -8,6 +8,7 @@
Bug #5977: Fatigueless NPCs' corpse underwater changes animation on game load Bug #5977: Fatigueless NPCs' corpse underwater changes animation on game load
Bug #6939: OpenMW-CS: ID columns are too short Bug #6939: OpenMW-CS: ID columns are too short
Bug #6949: Sun Damage effect doesn't work in quasi exteriors Bug #6949: Sun Damage effect doesn't work in quasi exteriors
Bug #6964: Nerasa Dralor Won't Follow
Feature #6945: Support S3TC-compressed and BGR/BGRA NiPixelData Feature #6945: Support S3TC-compressed and BGR/BGRA NiPixelData
0.48.0 0.48.0

View file

@ -52,7 +52,7 @@ namespace MWLua
{ {
auto* lua = context.mLua; auto* lua = context.mLua;
sol::table api(lua->sol(), sol::create); sol::table api(lua->sol(), sol::create);
api["API_REVISION"] = 29; api["API_REVISION"] = 30;
api["quit"] = [lua]() api["quit"] = [lua]()
{ {
Log(Debug::Warning) << "Quit requested by a Lua script.\n" << lua->debugTraceback(); Log(Debug::Warning) << "Quit requested by a Lua script.\n" << lua->debugTraceback();

View file

@ -150,7 +150,6 @@ namespace MWLua
{"EndPolygonNotFound", DetourNavigator::Status::EndPolygonNotFound}, {"EndPolygonNotFound", DetourNavigator::Status::EndPolygonNotFound},
{"MoveAlongSurfaceFailed", DetourNavigator::Status::MoveAlongSurfaceFailed}, {"MoveAlongSurfaceFailed", DetourNavigator::Status::MoveAlongSurfaceFailed},
{"FindPathOverPolygonsFailed", DetourNavigator::Status::FindPathOverPolygonsFailed}, {"FindPathOverPolygonsFailed", DetourNavigator::Status::FindPathOverPolygonsFailed},
{"GetPolyHeightFailed", DetourNavigator::Status::GetPolyHeightFailed},
{"InitNavMeshQueryFailed", DetourNavigator::Status::InitNavMeshQueryFailed}, {"InitNavMeshQueryFailed", DetourNavigator::Status::InitNavMeshQueryFailed},
})); }));

View file

@ -38,7 +38,6 @@ namespace DetourNavigator
OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_STATUS_MESSAGE(EndPolygonNotFound) OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_STATUS_MESSAGE(EndPolygonNotFound)
OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_STATUS_MESSAGE(MoveAlongSurfaceFailed) OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_STATUS_MESSAGE(MoveAlongSurfaceFailed)
OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_STATUS_MESSAGE(FindPathOverPolygonsFailed) OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_STATUS_MESSAGE(FindPathOverPolygonsFailed)
OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_STATUS_MESSAGE(GetPolyHeightFailed)
OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_STATUS_MESSAGE(InitNavMeshQueryFailed) OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_STATUS_MESSAGE(InitNavMeshQueryFailed)
} }
#undef OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_STATUS_MESSAGE #undef OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_STATUS_MESSAGE

View file

@ -239,8 +239,7 @@ namespace DetourNavigator
} }
} }
if (dtStatusFailed(navMeshQuery.getPolyHeight(polyRef, polyPos.ptr(), &iterPos.y()))) navMeshQuery.getPolyHeight(polyRef, polyPos.ptr(), &iterPos.y());
return Status::GetPolyHeightFailed;
iterPos.x() = result->mResultPos.x(); iterPos.x() = result->mResultPos.x();
iterPos.z() = result->mResultPos.z(); iterPos.z() = result->mResultPos.z();

View file

@ -12,7 +12,6 @@ namespace DetourNavigator
EndPolygonNotFound, EndPolygonNotFound,
MoveAlongSurfaceFailed, MoveAlongSurfaceFailed,
FindPathOverPolygonsFailed, FindPathOverPolygonsFailed,
GetPolyHeightFailed,
InitNavMeshQueryFailed, InitNavMeshQueryFailed,
}; };
@ -34,8 +33,6 @@ namespace DetourNavigator
return "move along surface on navmesh is failed"; return "move along surface on navmesh is failed";
case Status::FindPathOverPolygonsFailed: case Status::FindPathOverPolygonsFailed:
return "path over navmesh polygons is not found"; return "path over navmesh polygons is not found";
case Status::GetPolyHeightFailed:
return "failed to get polygon height";
case Status::InitNavMeshQueryFailed: case Status::InitNavMeshQueryFailed:
return "failed to init navmesh query"; return "failed to init navmesh query";
} }

View file

@ -121,8 +121,6 @@
-- algorithm implementation or bad navigation mesh data; -- algorithm implementation or bad navigation mesh data;
-- @field [parent=#FIND_PATH_STATUS] #number FindPathOverPolygonsFailed Path over navigation mesh from `source` to -- @field [parent=#FIND_PATH_STATUS] #number FindPathOverPolygonsFailed Path over navigation mesh from `source` to
-- `destination` does not exist or navigation mesh is not fully generated to provide the path; -- `destination` does not exist or navigation mesh is not fully generated to provide the path;
-- @field [parent=#FIND_PATH_STATUS] #number GetPolyHeightFailed Found path couldn't be smoothed due to imperfect
-- algorithm implementation or bad navigation mesh data;
-- @field [parent=#FIND_PATH_STATUS] #number InitNavMeshQueryFailed Couldn't initialize required data due to bad input -- @field [parent=#FIND_PATH_STATUS] #number InitNavMeshQueryFailed Couldn't initialize required data due to bad input
-- or bad navigation mesh data. -- or bad navigation mesh data.