mirror of
https://github.com/XProger/OpenLara.git
synced 2025-02-24 23:42:49 +01:00
#49 fix
This commit is contained in:
parent
e4fe64d754
commit
4ce50556a3
@ -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 :
|
||||
|
Loading…
x
Reference in New Issue
Block a user