From 9e7176564477b39ccf2eb2ce4e1994bf26ca0e33 Mon Sep 17 00:00:00 2001 From: v2v3v4 Date: Sat, 6 Apr 2019 03:11:04 +0500 Subject: [PATCH] Fixed Actor levitation (an animation bug) --- cs/engine/xrGame/Actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cs/engine/xrGame/Actor.cpp b/cs/engine/xrGame/Actor.cpp index 8fbc8693b..82ae97388 100644 --- a/cs/engine/xrGame/Actor.cpp +++ b/cs/engine/xrGame/Actor.cpp @@ -1096,7 +1096,7 @@ void CActor::shedule_Update (u32 DT) mstate_wishful &=~mcFwd; mstate_wishful &=~mcBack; extern bool g_bAutoClearCrouch; - if (g_bAutoClearCrouch) + if (g_bAutoClearCrouch && !(mstate_real&(mcJump | mcFall)))/// v2v3v4 фикс когда можно было прыгнув в прыжке встать перед самой землёй забаговав анимацию ходьбы (левитация) mstate_wishful &=~mcCrouch; //----------------------------------------------------- }