Update collide.cpp

This commit is contained in:
Lwmte 2021-11-12 01:16:29 +03:00
parent 293f5c9e52
commit 4c16ee30fb

View file

@ -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;