mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-01 09:18:00 +03:00
Fixed Climb Out Of Water towards -X
This commit is contained in:
parent
81b349dc26
commit
f4622315cf
1 changed files with 2 additions and 2 deletions
|
@ -2416,7 +2416,7 @@ Vector2 GetOrthogonalIntersect(int xPos, int zPos, int radius, short yRot)
|
||||||
{
|
{
|
||||||
Vector2 vect;
|
Vector2 vect;
|
||||||
|
|
||||||
int xGrid = xPos - (xPos % WALL_SIZE);
|
int xGrid = xPos - ((xPos) % WALL_SIZE);
|
||||||
int zGrid = zPos - (zPos % WALL_SIZE);
|
int zGrid = zPos - (zPos % WALL_SIZE);
|
||||||
|
|
||||||
int dir = (unsigned short)(yRot + ANGLE(45)) / ANGLE(90);
|
int dir = (unsigned short)(yRot + ANGLE(45)) / ANGLE(90);
|
||||||
|
@ -2432,7 +2432,7 @@ Vector2 GetOrthogonalIntersect(int xPos, int zPos, int radius, short yRot)
|
||||||
zPos = zGrid + radius;
|
zPos = zGrid + radius;
|
||||||
break;
|
break;
|
||||||
case WEST:
|
case WEST:
|
||||||
xPos = xGrid + radius;
|
xPos = xGrid - (WALL_SIZE - 1) + radius;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue