From 28de4a96bf3c8b806b2d018ac39e6876c8a7b740 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 11 Jul 2022 12:22:35 +0200 Subject: [PATCH] Rename to DrawAIScriptNodes --- r5dev/engine/debugoverlay.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/r5dev/engine/debugoverlay.cpp b/r5dev/engine/debugoverlay.cpp index edb6cb17..4a054a83 100644 --- a/r5dev/engine/debugoverlay.cpp +++ b/r5dev/engine/debugoverlay.cpp @@ -155,9 +155,13 @@ void DrawOverlay(OverlayBase_t* pOverlay) } if (r_debug_overlay_wireframe->GetBool()) + { v_RenderWireframeSphere(pSphere->vOrigin, pSphere->flRadius, pSphere->nTheta, pSphere->nPhi, Color(pSphere->r, pSphere->g, pSphere->b, pSphere->a), false); + } else + { DebugDrawSphere(pSphere->vOrigin, pSphere->flRadius, Color(pSphere->r, pSphere->g, pSphere->b, pSphere->a), 16); + } break; } case OverlayType_t::OVERLAY_LINE: @@ -217,7 +221,7 @@ void DrawOverlay(OverlayBase_t* pOverlay) //------------------------------------------------------------------------------ // Purpose : draw AIN script nodes //------------------------------------------------------------------------------ -void DrawAIScriptNode() +void DrawAIScriptNodes() { #ifndef CLIENT_DLL if (*g_pAINetwork) @@ -259,7 +263,7 @@ void DrawAllOverlays(bool bDraw) } if (ai_script_nodes_draw->GetBool()) { - DrawAIScriptNode(); + DrawAIScriptNodes(); } EnterCriticalSection(&*s_OverlayMutex);