mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-11 21:16:55 +03:00
Fix shimmying
This commit is contained in:
parent
3b7d53b0a6
commit
f459726b2f
1 changed files with 4 additions and 4 deletions
|
@ -5299,7 +5299,7 @@ int LaraHangLeftCornerTest(ITEM_INFO* item, COLL_INFO* coll)//13C24, 13CD4
|
|||
item->pos.yRot = oldYrot;
|
||||
Lara.moveAngle = oldYrot;
|
||||
|
||||
if ((LaraFloorFront(item, oldYrot - ANGLE(90), 116) & 0x8000) != 0)
|
||||
if (LaraFloorFront(item, oldYrot - ANGLE(90), 116) < 0)
|
||||
return 0;
|
||||
|
||||
switch (angle)
|
||||
|
@ -5423,7 +5423,7 @@ int LaraHangRightCornerTest(ITEM_INFO* item, COLL_INFO* coll)//13738, 137E8
|
|||
Lara.cornerX = x;
|
||||
item->pos.zPos = z;
|
||||
Lara.cornerZ = z;
|
||||
item->pos.yRot -= ANGLE(90);
|
||||
item->pos.yRot += ANGLE(90);
|
||||
|
||||
int result = -IsValidHangPos(item, coll);
|
||||
if (result)
|
||||
|
@ -5457,7 +5457,7 @@ int LaraHangRightCornerTest(ITEM_INFO* item, COLL_INFO* coll)//13738, 137E8
|
|||
item->pos.yRot = oldYrot;
|
||||
Lara.moveAngle = oldYrot;
|
||||
|
||||
if ((LaraFloorFront(item, oldYrot - ANGLE(90), 116) & 0x8000) != 0)
|
||||
if (LaraFloorFront(item, oldYrot + ANGLE(90), 116) < 0)
|
||||
return 0;
|
||||
|
||||
switch (angle)
|
||||
|
@ -5488,7 +5488,7 @@ int LaraHangRightCornerTest(ITEM_INFO* item, COLL_INFO* coll)//13738, 137E8
|
|||
Lara.cornerX = x;
|
||||
item->pos.zPos = z;
|
||||
Lara.cornerZ = z;
|
||||
item->pos.yRot += ANGLE(90);
|
||||
item->pos.yRot -= ANGLE(90);
|
||||
|
||||
result = IsValidHangPos(item, coll);
|
||||
if (!result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue