Skip to content

Commit

Permalink
Fix debug overlay not rendering script function stuff (#637)
Browse files Browse the repository at this point in the history
Call our version of the function instead of native
  • Loading branch information
ASpoonPlaysGames authored Jan 13, 2024
1 parent f98513d commit f2dd158
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion primedev/client/debugoverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f2dd158

Please sign in to comment.