Merge branch 'main' into 26-02-27-allocator-isolation

This commit is contained in:
PJB3005
2026-03-05 00:15:09 +01:00
5530 changed files with 252979 additions and 26830 deletions
+5
View File
@@ -1025,7 +1025,12 @@ void PathTrace_c::setAvoidPoint() {
JUT_ASSERT(1604, mObstacle != NULL);
cXyz& selfPos = fopAcM_GetPosition(mMyself);
s16 obstacleAngle = cLib_targetAngleY(&selfPos, &fopAcM_GetPosition(mObstacle));
#if TARGET_LITTLE_ENDIAN
Vec copy = dPath_GetPnt(mPath, field_0x20)->m_position;
s16 diff = (s16)obstacleAngle - cLib_targetAngleY(&selfPos, &copy);
#else
s16 diff = (s16)obstacleAngle - cLib_targetAngleY(&selfPos, &dPath_GetPnt(mPath, field_0x20)->m_position);
#endif
s16 rot;
if (diff > 0) {
rot = (s16)obstacleAngle + 0x4000;