From 009f264c3d98f742bec9aaeaafe86d66ad5116a5 Mon Sep 17 00:00:00 2001 From: navewindre Date: Tue, 4 Dec 2018 19:56:23 +0100 Subject: dadffsad --- cheat/internal_rewrite/context.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cheat/internal_rewrite/context.cpp') diff --git a/cheat/internal_rewrite/context.cpp b/cheat/internal_rewrite/context.cpp index cf25cab..cec25ba 100644 --- a/cheat/internal_rewrite/context.cpp +++ b/cheat/internal_rewrite/context.cpp @@ -120,6 +120,10 @@ void c_context::on_cmove_end( user_cmd_t* cmd ) { if( std::abs( m_last_shot - m_last_shot_ack ) >= 10 ) reset_shot_queue( ); + m_past_origins.push_front( m_last_origin ); + while( m_past_origins.size( ) > TIME_TO_TICKS( 1.f ) ) + m_past_origins.pop_back( ); + *get_last_cmd( ) = *cmd; } -- cgit v1.2.3