From bdee69bbaae8213660704eead16677c702eb34f1 Mon Sep 17 00:00:00 2001 From: LIghty Date: Thu, 29 Mar 2018 19:27:39 +0200 Subject: [PATCH] fix autoreflect not drawing ring --- src/hacks/AutoReflect.cpp | 2 ++ src/visual/drawmgr.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/hacks/AutoReflect.cpp b/src/hacks/AutoReflect.cpp index 3ccb0c68..16315005 100755 --- a/src/hacks/AutoReflect.cpp +++ b/src/hacks/AutoReflect.cpp @@ -202,6 +202,7 @@ bool IsEntStickyBomb(CachedEntity *ent) } void Draw() { +#if ENABLE_VISUALS == 1 // Dont draw to screen when reflect is disabled if (!enabled) return; @@ -236,6 +237,7 @@ void Draw() } } } +#endif } } } diff --git a/src/visual/drawmgr.cpp b/src/visual/drawmgr.cpp index b636f85e..d13cb93c 100755 --- a/src/visual/drawmgr.cpp +++ b/src/visual/drawmgr.cpp @@ -115,6 +115,11 @@ void DrawCheatVisuals() hacks::tf::radar::Draw(); } #endif + IF_GAME(IsTF()) + { + PROF_SECTION(DRAW_autoreflect); + hacks::tf::autoreflect::Draw(); + } IF_GAME(IsTF2()) { PROF_SECTION(DRAW_healarrows);