summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/update_clientside_animation.cpp
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2018-12-20 21:38:13 +1300
committerboris <wzn@moneybot.cc>2018-12-20 21:38:13 +1300
commit098d6fbe9b25bccf1afd2aa17ed0dfc0e17db367 (patch)
tree11140393d085c99cf23c4a325422e7792a4ec7d5 /cheat/internal_rewrite/update_clientside_animation.cpp
parenta5acd4c9a3b24c9d5af3a8f504e5af053fa7fa09 (diff)
parentfccbfbed0e066a2456d6443405d599b5bc93affa (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'cheat/internal_rewrite/update_clientside_animation.cpp')
-rw-r--r--cheat/internal_rewrite/update_clientside_animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cheat/internal_rewrite/update_clientside_animation.cpp b/cheat/internal_rewrite/update_clientside_animation.cpp
index 622fc46..9a0dd2b 100644
--- a/cheat/internal_rewrite/update_clientside_animation.cpp
+++ b/cheat/internal_rewrite/update_clientside_animation.cpp
@@ -34,7 +34,7 @@ void __fastcall hooks::update_clientside_animation( void* ecx_, void* edx_ ) {
if( !first_update ) {
g_ctx.m_local->restore_anim_data( true );
- ent->set_abs_angles( vec3_t( 0, g_ctx.m_absyaw, 0 ) );
+ ent->set_abs_angles( vec3_t( 0, ent->get_animstate( )->m_flGoalFeetYaw, 0 ) );
bool backup = ent->get_animstate( )->m_bOnGround;
ent->get_animstate( )->m_bOnGround = false;