From f2dd1583ef87a8d61f206de80f6ef3aa47d92b17 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 13 Jan 2024 16:47:44 +0000 Subject: Fix debug overlay not rendering script function stuff (#637) Call our version of the function instead of native --- primedev/client/debugoverlay.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/primedev/client/debugoverlay.cpp b/primedev/client/debugoverlay.cpp index e231054d..8e860218 100644 --- a/primedev/client/debugoverlay.cpp +++ b/primedev/client/debugoverlay.cpp @@ -306,7 +306,10 @@ void, __fastcall, (bool bRender)) if (bShouldDraw && bRender && (Cvar_enable_debug_overlays->GetBool() || pCurrOverlay->m_Type == OVERLAY_SMARTAMMO)) { - DrawOverlay(pCurrOverlay); + // call the new function, not the original + // note: if there is a beter way to call the hooked version of an + // autohook func then that would be better than this + __autohookfuncDrawOverlay(pCurrOverlay); } pPrevOverlay = pCurrOverlay; -- cgit v1.2.3