Fix debug overlay not rendering script function stuff (#637)

Call our version of the function instead of native
This commit is contained in:
Jack 2024-01-13 16:47:44 +00:00 committed by GitHub
parent f98513d71f
commit f2dd1583ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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;