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, 2 insertions, 2 deletions
diff --git a/cheat/internal_rewrite/context.cpp b/cheat/internal_rewrite/context.cpp
index cec25ba..4de1479 100644
--- a/cheat/internal_rewrite/context.cpp
+++ b/cheat/internal_rewrite/context.cpp
@@ -30,8 +30,8 @@ void c_context::on_cmove_end( user_cmd_t* cmd ) {
//m_last_realangle.x = m_last_fakeangle.x;
}
- if( g_cheat.m_lagmgr.get_choked( ) == 1 ) {
- m_thirdperson_angle = m_last_realangle;
+ if( !g_cheat.m_lagmgr.get_state( ) ) {
+ m_thirdperson_angle = cmd->m_viewangles;
}
m_thirdperson_angle.x = std::clamp( cmd->m_viewangles.x, -89.f, 89.f );