mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-02 17:57:59 +03:00
Update collide.cpp
This commit is contained in:
parent
293f5c9e52
commit
4c16ee30fb
1 changed files with 2 additions and 2 deletions
|
@ -1806,7 +1806,7 @@ void GetCollisionInfo(COLL_INFO* coll, ITEM_INFO* item, PHD_VECTOR offset, bool
|
|||
{
|
||||
if (coll->TriangleAtLeft() && !coll->MiddleLeft.Slope)
|
||||
{
|
||||
// MAGIC: Force slight push-out to the left side to avoid stucking
|
||||
// HACK: Force slight push-out to the left side to avoid stucking
|
||||
MoveItem(item, coll->Setup.ForwardAngle + ANGLE(8), item->speed);
|
||||
|
||||
coll->Shift.x = coll->Setup.OldPosition.x - xPos;
|
||||
|
@ -1856,7 +1856,7 @@ void GetCollisionInfo(COLL_INFO* coll, ITEM_INFO* item, PHD_VECTOR offset, bool
|
|||
{
|
||||
if (coll->TriangleAtRight() && !coll->MiddleRight.Slope)
|
||||
{
|
||||
// MAGIC: Force slight push-out to the right side to avoid stucking
|
||||
// HACK: Force slight push-out to the right side to avoid stucking
|
||||
MoveItem(item, coll->Setup.ForwardAngle - ANGLE(8), item->speed);
|
||||
|
||||
coll->Shift.x = coll->Setup.OldPosition.x - xPos;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue