diff options
| author | navewindre <boneyaard@gmail.com> | 2018-12-03 22:03:34 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-12-03 22:03:41 +0100 |
| commit | 716be28826ac61491944490373402c39123a1d75 (patch) | |
| tree | 60614ff806843ccfde19c95bd28a8a25a230a54f /cheat/internal_rewrite/context.cpp | |
| parent | 4047e9083ef1731847bcd75f361f2d611fe5e401 (diff) | |
boris is cool
Diffstat (limited to 'cheat/internal_rewrite/context.cpp')
| -rw-r--r-- | cheat/internal_rewrite/context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cheat/internal_rewrite/context.cpp b/cheat/internal_rewrite/context.cpp index 26af64c..cf25cab 100644 --- a/cheat/internal_rewrite/context.cpp +++ b/cheat/internal_rewrite/context.cpp @@ -108,7 +108,7 @@ void c_context::on_cmove_end( user_cmd_t* cmd ) { last_shot = g_csgo.m_globals->m_curtime; else if( auto weapon = g_ctx.m_local->get_weapon( ) ) { float fire_rate = weapon->get_wpn_info( )->cycle_time; - float tolerance = util::get_total_latency( ) * 2.f + fire_rate + TICK_INTERVAL( ); + float tolerance = util::get_total_latency( ) + fire_rate + TICK_INTERVAL( ); if( std::abs( last_shot - g_csgo.m_globals->m_curtime ) > tolerance ) { reset_shot_queue( ); last_shot = g_csgo.m_globals->m_curtime; |
