summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cheat/internal_rewrite/context.cpp')
-rw-r--r--cheat/internal_rewrite/context.cpp2
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;