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
c82c6f5b6f
commit
fd776eae7f
1 changed files with 3 additions and 2 deletions
|
@ -1272,10 +1272,11 @@ void GetCollisionInfo(COLL_INFO* coll, ITEM_INFO* item, PHD_VECTOR offset, bool
|
|||
int xfront, xright, xleft, zfront, zright, zleft;
|
||||
|
||||
// Get nearest 90-degree snapped angle (quadrant).
|
||||
auto quadrant = coll->Setup.NoQuadrants ? -1 : GetQuadrant(coll->Setup.ForwardAngle);
|
||||
auto quadrant = GetQuadrant(coll->Setup.ForwardAngle);
|
||||
|
||||
// Get side probe offsets depending on quadrant.
|
||||
switch (quadrant)
|
||||
// If unconstrained mode is specified, don't use quadrant.
|
||||
switch (coll->Setup.NoQuadrants ? -1 : quadrant)
|
||||
{
|
||||
case 0:
|
||||
xfront = phd_sin(coll->Setup.ForwardAngle) * coll->Setup.Radius;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue