diff options
| author | navewindre <boneyaard@gmail.com> | 2018-12-23 17:08:57 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-12-23 17:08:57 +0100 |
| commit | fef68b3881d7b1a60abe2be85dde27b7b0ada3c3 (patch) | |
| tree | 894a486c940cb4708053061638c8a936c8ef1af7 /cheat/internal_rewrite/update_clientside_animation.cpp | |
| parent | 8a6e64f020047709f53ddd35797c511a5d3239fe (diff) | |
d
Diffstat (limited to 'cheat/internal_rewrite/update_clientside_animation.cpp')
| -rw-r--r-- | cheat/internal_rewrite/update_clientside_animation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cheat/internal_rewrite/update_clientside_animation.cpp b/cheat/internal_rewrite/update_clientside_animation.cpp index 9a0dd2b..b01d0f0 100644 --- a/cheat/internal_rewrite/update_clientside_animation.cpp +++ b/cheat/internal_rewrite/update_clientside_animation.cpp @@ -29,7 +29,13 @@ void __fastcall hooks::update_clientside_animation( void* ecx_, void* edx_ ) { last_update = g_csgo.m_globals->m_curtime;
ent->get_animstate( )->m_iLastClientSideAnimationUpdateFramecount = g_csgo.m_globals->m_framecount;
+
+ float backup_time = ent->get_animstate( )->m_flLastClientSideAnimationUpdateTime;
+
+ ent->get_animstate( )->m_flLastClientSideAnimationUpdateTime = g_csgo.m_globals->m_curtime;
old_func( ecx_, edx_ );
+ ent->get_animstate( )->m_flLastClientSideAnimationUpdateTime = backup_time;
+
if( !first_update ) {
g_ctx.m_local->restore_anim_data( true );
|
