From b6c1df361bc9e0c42d003a13854b655b8d6d5eaf Mon Sep 17 00:00:00 2001 From: navewindre Date: Thu, 20 Sep 2018 22:27:40 +0200 Subject: oops! --- internal_rewrite/visual_world.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal_rewrite') diff --git a/internal_rewrite/visual_world.cpp b/internal_rewrite/visual_world.cpp index 5ceffba..1a64090 100644 --- a/internal_rewrite/visual_world.cpp +++ b/internal_rewrite/visual_world.cpp @@ -210,8 +210,8 @@ namespace features auto dist = g_ctx.m_local->m_vecOrigin( ).dist_to( pos ); clr_t col = g_settings.visuals.grenade_esp_clr; - if( dist > 250.f ) { - col.a( ) *= std::min( 750.f - ( dist - 250.f ), 0.f ) / 750.f; + if( dist > 250.f && fade ) { + col.a( ) *= std::max( 750.f - ( dist - 250.f ), 0.f ) / 750.f; } draw_string( w2s.x, w2s.y, ALIGN_CENTER, false, -- cgit v1.2.3