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.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}