aboutsummaryrefslogtreecommitdiff
path: root/primedev
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2024-01-13 16:47:44 +0000
committerGitHub <noreply@github.com>2024-01-13 17:47:44 +0100
commitf2dd1583ef87a8d61f206de80f6ef3aa47d92b17 (patch)
treea03266f51b0fcfd1c94ca38f57df9a9d0f834fb2 /primedev
parentf98513d71f4d39bd8286ccf816d2603fb09035e6 (diff)
downloadNorthstarLauncher-f2dd1583ef87a8d61f206de80f6ef3aa47d92b17.tar.gz
NorthstarLauncher-f2dd1583ef87a8d61f206de80f6ef3aa47d92b17.zip
Fix debug overlay not rendering script function stuff (#637)v1.22.1-rc1
Call our version of the function instead of native
Diffstat (limited to 'primedev')
-rw-r--r--primedev/client/debugoverlay.cpp5
1 files changed, 4 insertions, 1 deletions
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;