summaryrefslogtreecommitdiff
path: root/internal_rewrite
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-09-20 22:27:40 +0200
committernavewindre <boneyaard@gmail.com>2018-09-20 22:27:40 +0200
commitb6c1df361bc9e0c42d003a13854b655b8d6d5eaf (patch)
tree5225bc2f73d5e1859bbf3d7e30a6be9316cef8b9 /internal_rewrite
parentb1cd9458f103d99f4de1807f512ed9ffd2e38220 (diff)
oops!
Diffstat (limited to 'internal_rewrite')
-rw-r--r--internal_rewrite/visual_world.cpp4
1 files changed, 2 insertions, 2 deletions
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,