diff options
| author | navewindre <boneyaard@gmail.com> | 2018-12-04 19:56:23 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-12-04 19:56:23 +0100 |
| commit | 009f264c3d98f742bec9aaeaafe86d66ad5116a5 (patch) | |
| tree | 0f928ae839867e117a694cd84c2dcfcf419d330b /cheat/internal_rewrite/context.cpp | |
| parent | a7e0ce1fb433a3f1ba34b92b084a2c5e8baf4dfe (diff) | |
dadffsad
Diffstat (limited to 'cheat/internal_rewrite/context.cpp')
| -rw-r--r-- | cheat/internal_rewrite/context.cpp | 4 |
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; } |
