1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-02-24 23:42:49 +01: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 aIndex = animation.index;
if (floor == ceiling)
if (floor == ceiling || h < 256)
;// do nothing
else if (h <= 2 * 256 + 128) {
aIndex = ANIM_CLIMB_2;
@ -2136,6 +2136,9 @@ struct Lara : Character {
if (collision.side == Collision::FRONT) {
int floor = collision.info[Collision::FRONT].floor;
if (state == STATE_STEP_LEFT || state == STATE_STEP_RIGHT)
collision.side = Collision::NONE;
// hit the wall
switch (stand) {
case STAND_AIR :