diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-12 02:33:01 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-12 02:33:01 +0100 |
commit | 6768e46b200c63d758bd6e92bd500f3c754c3245 (patch) | |
tree | 47a0e90999cd8fc933301197f7104a94d567471c /NorthstarDedicatedTest/debugoverlay.cpp | |
parent | 8a33725513d7dae6a0be3b8366976e17661d2e2e (diff) | |
download | NorthstarLauncher-6768e46b200c63d758bd6e92bd500f3c754c3245.tar.gz NorthstarLauncher-6768e46b200c63d758bd6e92bd500f3c754c3245.zip |
formatting changes
Diffstat (limited to 'NorthstarDedicatedTest/debugoverlay.cpp')
-rw-r--r-- | NorthstarDedicatedTest/debugoverlay.cpp | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/NorthstarDedicatedTest/debugoverlay.cpp b/NorthstarDedicatedTest/debugoverlay.cpp index 7dee42e9..051f34e6 100644 --- a/NorthstarDedicatedTest/debugoverlay.cpp +++ b/NorthstarDedicatedTest/debugoverlay.cpp @@ -77,36 +77,17 @@ struct OverlayBox_t : public OverlayBase_t int a; }; -// this is in cvar.h, don't need it here -/*class Color -{ - public: - Color(int r, int g, int b, int a) - { - _color[0] = (unsigned char)r; - _color[1] = (unsigned char)g; - _color[2] = (unsigned char)b; - _color[3] = (unsigned char)a; - } - - private: - unsigned char _color[4]; -};*/ - static HMODULE sEngineModule; -typedef void (*DrawOverlayType)(OverlayBase_t* a1); -DrawOverlayType DrawOverlay; - typedef void (*RenderLineType)(Vector3 v1, Vector3 v2, Color c, bool bZBuffer); static RenderLineType RenderLine; - typedef void (*RenderBoxType)(Vector3 vOrigin, QAngle angles, Vector3 vMins, Vector3 vMaxs, Color c, bool bZBuffer, bool bInsideOut); static RenderBoxType RenderBox; - static RenderBoxType RenderWireframeBox; // engine.dll+0xABCB0 +typedef void (*DrawOverlayType)(OverlayBase_t* a1); +DrawOverlayType DrawOverlay; void __fastcall DrawOverlayHook(OverlayBase_t* pOverlay) { EnterCriticalSection((LPCRITICAL_SECTION)((char*)sEngineModule + 0x10DB0A38)); // s_OverlayMutex |