From 9946d288757c4f3b085c8cd444d0609228f1e788 Mon Sep 17 00:00:00 2001 From: XProger Date: Sun, 13 Jan 2019 05:12:56 +0300 Subject: [PATCH] fixed #49 --- src/lara.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lara.h b/src/lara.h index cb1e21d..90cd428 100644 --- a/src/lara.h +++ b/src/lara.h @@ -2453,14 +2453,14 @@ struct Lara : Character { } bool checkClimb() { - if ((input & (FORTH | ACTION)) == (FORTH | ACTION) && (animation.index == ANIM_STAND || animation.index == ANIM_STAND_NORMAL) && emptyHands() && collision.side == Collision::FRONT) { // TODO: get rid of animation.index + if ((input & (FORTH | ACTION)) == (FORTH | ACTION) && !(input & (LEFT | RIGHT)) && (animation.index == ANIM_STAND || animation.index == ANIM_STAND_NORMAL) && emptyHands() && collision.side == Collision::FRONT) { // TODO: get rid of animation.index float floor = collision.info[Collision::FRONT].floor; float ceiling = collision.info[Collision::FRONT].ceiling; float h = pos.y - floor; int aIndex = animation.index; - if (floor == ceiling || h < 256) + if (floor - ceiling < 768 || h < 256) ;// do nothing else if (h <= 2 * 256 + 128) { aIndex = ANIM_CLIMB_2;