fix autoreflect not drawing ring

This commit is contained in:
LIghty 2018-03-29 19:27:39 +02:00
parent d31bd4efb3
commit bdee69bbaa
2 changed files with 7 additions and 0 deletions

View File

@ -202,6 +202,7 @@ bool IsEntStickyBomb(CachedEntity *ent)
} }
void Draw() void Draw()
{ {
#if ENABLE_VISUALS == 1
// Dont draw to screen when reflect is disabled // Dont draw to screen when reflect is disabled
if (!enabled) if (!enabled)
return; return;
@ -236,6 +237,7 @@ void Draw()
} }
} }
} }
#endif
} }
} }
} }

View File

@ -115,6 +115,11 @@ void DrawCheatVisuals()
hacks::tf::radar::Draw(); hacks::tf::radar::Draw();
} }
#endif #endif
IF_GAME(IsTF())
{
PROF_SECTION(DRAW_autoreflect);
hacks::tf::autoreflect::Draw();
}
IF_GAME(IsTF2()) IF_GAME(IsTF2())
{ {
PROF_SECTION(DRAW_healarrows); PROF_SECTION(DRAW_healarrows);