summaryrefslogtreecommitdiff
path: root/internal_rewrite/update_clientside_animation.cpp
diff options
context:
space:
mode:
authorJustSomePwner <crotchyalt@gmail.com>2018-09-01 14:32:14 +0200
committerJustSomePwner <crotchyalt@gmail.com>2018-09-01 14:32:14 +0200
commite2350a9ef73817f1f364b6223f9d4d9d5c6235a8 (patch)
tree9c752b5e0f04e638fba947fefa0fd00badf3f92b /internal_rewrite/update_clientside_animation.cpp
parent7afd0eaf52abe9e0bc8c8b5e986e90267f83b4e2 (diff)
parentbeb5515757c0e653adc33f181184fe3791ca0a6b (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'internal_rewrite/update_clientside_animation.cpp')
-rw-r--r--internal_rewrite/update_clientside_animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal_rewrite/update_clientside_animation.cpp b/internal_rewrite/update_clientside_animation.cpp
index 4653fa6..e05d6c2 100644
--- a/internal_rewrite/update_clientside_animation.cpp
+++ b/internal_rewrite/update_clientside_animation.cpp
@@ -44,7 +44,7 @@ void __fastcall hooks::update_clientside_animation( void* ecx_, void* edx_ ) {
vec3_t real_angle = g_ctx.m_thirdperson_angle;
float min_pitch = 10.0f;
- if( g_ctx.m_local->get_animstate( )->m_bInHitGroundAnimation ) {
+ if( g_ctx.m_local->get_animstate( )->m_bInHitGroundAnimation && ( g_ctx.m_local->m_fFlags( ) & FL_ONGROUND ) ) {
if( real_angle.x > min_pitch ) {
real_angle.x = -min_pitch;
}