fix crouch roll embedding in 1-2 click ledges

This commit is contained in:
Wuups 2020-05-18 02:22:00 -05:00 committed by GitHub
parent 6d4cfeef98
commit 98833d3345

View file

@ -5163,7 +5163,7 @@ void lara_as_crouch_roll(ITEM_INFO* item, COLL_INFO* coll)
/*stop Lara from doing it in these conditions to avoid trouble*/
if (LaraFloorFront(item, item->pos.yRot, 1024) >= 512 || //4 clicks away from holes in the floor
TestWall(item, 1024, 0, -640)) //4 clicks away from walls
TestWall(item, 1024, 0, -128)) //4 clicks away from walls
{
return;
}