diff options
| author | navewindre <boneyaard@gmail.com> | 2018-09-21 13:45:50 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-09-21 13:45:50 +0200 |
| commit | fe13019366cd7929093516f479d7f23c6c38d19f (patch) | |
| tree | 795bcf6d0f259c4c2c48d6c3a3401d3c37d80bb8 /internal_rewrite/visual_world.cpp | |
| parent | b6c1df361bc9e0c42d003a13854b655b8d6d5eaf (diff) | |
a
Diffstat (limited to 'internal_rewrite/visual_world.cpp')
| -rw-r--r-- | internal_rewrite/visual_world.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal_rewrite/visual_world.cpp b/internal_rewrite/visual_world.cpp index 1a64090..10b4c9f 100644 --- a/internal_rewrite/visual_world.cpp +++ b/internal_rewrite/visual_world.cpp @@ -209,9 +209,9 @@ namespace features auto dist = g_ctx.m_local->m_vecOrigin( ).dist_to( pos );
- clr_t col = g_settings.visuals.grenade_esp_clr;
+ clr_t col = g_settings.visuals.grenade_esp_clr( );
if( dist > 250.f && fade ) {
- col.a( ) *= std::max( 750.f - ( dist - 250.f ), 0.f ) / 750.f;
+ col.a( ) *= std::max( ( 1000.f - ( dist - 250.f ) ) / 1000.f, 0.f );
}
draw_string( w2s.x, w2s.y, ALIGN_CENTER, false,
|
