mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
CAI_Utility::DrawAIScriptNetwork: light cleanup
This commit is contained in:
parent
62f0e2aaf0
commit
b5b56c83ea
@ -88,11 +88,11 @@ void CAI_Utility::DrawAIScriptNetwork(const CAI_Network* pNetwork) const
|
||||
// Purpose: draw NavMesh BVTree
|
||||
// Input : *pMesh -
|
||||
//------------------------------------------------------------------------------
|
||||
void CAI_Utility::DrawNavMeshBVTree(dtNavMesh* pNavMesh) const
|
||||
void CAI_Utility::DrawNavMeshBVTree(dtNavMesh* pMesh) const
|
||||
{
|
||||
if (!pNavMesh)
|
||||
pNavMesh = GetNavMeshForHull(navmesh_debug_type->GetInt());
|
||||
if (!pNavMesh)
|
||||
if (!pMesh)
|
||||
pMesh = GetNavMeshForHull(navmesh_debug_type->GetInt());
|
||||
if (!pMesh)
|
||||
return; // NavMesh for hull not loaded.
|
||||
|
||||
const Vector3D vCamera = MainViewOrigin();
|
||||
@ -101,12 +101,12 @@ void CAI_Utility::DrawNavMeshBVTree(dtNavMesh* pNavMesh) const
|
||||
const float flCameraRange = navmesh_debug_camera_range->GetFloat();
|
||||
|
||||
OverlayBox_t::Transforms vTransforms;
|
||||
for (int i = navmesh_draw_bvtree->GetInt(), nt = pNavMesh->getTileCount(); i < nt; ++i)
|
||||
for (int i = navmesh_draw_bvtree->GetInt(), nt = pMesh->getTileCount(); i < nt; ++i)
|
||||
{
|
||||
if (nTileRange > 0 && i > nTileRange)
|
||||
break;
|
||||
|
||||
const dtMeshTile* pTile = &pNavMesh->m_tiles[i];
|
||||
const dtMeshTile* pTile = &pMesh->m_tiles[i];
|
||||
if (!pTile->header)
|
||||
continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user