From 716be28826ac61491944490373402c39123a1d75 Mon Sep 17 00:00:00 2001 From: navewindre Date: Mon, 3 Dec 2018 22:03:34 +0100 Subject: boris is cool --- cheat/internal_rewrite/context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cheat/internal_rewrite/context.cpp') 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; -- cgit v1.2.3