1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-16 01:54:38 +02:00
This commit is contained in:
XProger
2017-05-13 20:36:08 +03:00
parent e4fe64d754
commit 4ce50556a3

View File

@@ -1523,7 +1523,7 @@ struct Lara : Character {
int h = (int)pos.y - floor; int h = (int)pos.y - floor;
int aIndex = animation.index; int aIndex = animation.index;
if (floor == ceiling) if (floor == ceiling || h < 256)
;// do nothing ;// do nothing
else if (h <= 2 * 256 + 128) { else if (h <= 2 * 256 + 128) {
aIndex = ANIM_CLIMB_2; aIndex = ANIM_CLIMB_2;
@@ -2136,6 +2136,9 @@ struct Lara : Character {
if (collision.side == Collision::FRONT) { if (collision.side == Collision::FRONT) {
int floor = collision.info[Collision::FRONT].floor; int floor = collision.info[Collision::FRONT].floor;
if (state == STATE_STEP_LEFT || state == STATE_STEP_RIGHT)
collision.side = Collision::NONE;
// hit the wall // hit the wall
switch (stand) { switch (stand) {
case STAND_AIR : case STAND_AIR :