Skip to content

Commit

Permalink
Fix "zm_sv_debug_nav_transient_nofloor" not working if "zm_sv_debug_n…
Browse files Browse the repository at this point in the history
…av_transient" wasn't on (#331)
  • Loading branch information
TotallyMehis committed Oct 15, 2021
1 parent 572a9de commit 598ae0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mp/src/game/server/zmr/nav/zmr_nav_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void CZMRNavMesh::UpdateTransientAreas()
CZMNavTransientFilter filter;
Vector mins, maxs, center;

const bool bDebugging = zm_sv_debug_nav_transient.GetBool();
const bool bDebugging = zm_sv_debug_nav_transient.GetFloat() > 0.0f;


FOR_EACH_VEC( areas, i )
Expand Down Expand Up @@ -160,7 +160,7 @@ void CZMRNavMesh::UpdateFloorCheckAreas()
CZMNavTransientFilter filter;
Vector mins, maxs, center;

const bool bDebugging = zm_sv_debug_nav_transient_nofloor.GetBool();
const bool bDebugging = zm_sv_debug_nav_transient_nofloor.GetFloat() > 0.0f;


FOR_EACH_VEC( areas, i )
Expand Down Expand Up @@ -195,7 +195,7 @@ void CZMRNavMesh::UpdateFloorCheckAreas()

if ( bDebugging )
{
NDebugOverlay::SweptBox( center, center, mins, maxs, vec3_angle, bBlock ? 255 : 0, (!bBlock) ? 255 : 0, 0, 255, zm_sv_debug_nav_transient.GetFloat() );
NDebugOverlay::SweptBox( center, center, mins, maxs, vec3_angle, bBlock ? 255 : 0, (!bBlock) ? 255 : 0, 0, 255, zm_sv_debug_nav_transient_nofloor.GetFloat() );
}


Expand Down

0 comments on commit 598ae0c

Please sign in to comment.