diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-03-28 20:31:04 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-03-28 20:31:04 -0400 |
| commit | b72d243f9b1ef4d107bb33df3d74cf0ecf488cda (patch) | |
| tree | ea6bd66aa4e38033036af1ebd67e816d7683bc9c /src/d/d_envse.cpp | |
| parent | 8cfd2f7a1e93e7c9a256589f3997e67a02a60f9d (diff) | |
Cleanup the 3 path/point structs
Diffstat (limited to 'src/d/d_envse.cpp')
| -rw-r--r-- | src/d/d_envse.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/d/d_envse.cpp b/src/d/d_envse.cpp index 2ff9fa85..f0d5f60d 100644 --- a/src/d/d_envse.cpp +++ b/src/d/d_envse.cpp @@ -33,24 +33,24 @@ void dEnvSe_getNearPathPos(cXyz* r30, cXyz* r31, dPath* r26) { cXyz sp30[2]; f32 sp8; f32 f31 = FLOAT_MAX; - dPath__Point* point = r26->mpPnt; + dPnt* point = r26->m_points; cM3dGLin lin; for (i = 0; i < r26->m_num; point++, i++) { - sp8 = r31->abs2(point->mPos); + sp8 = r31->abs2(point->m_position); if (f31 > sp8) { f31 = sp8; nearIdx = i; } } - point = &r26->mpPnt[nearIdx]; + point = &r26->m_points[nearIdx]; if (nearIdx != 0) { - lin.set(point[-1].mPos, point[0].mPos); + lin.set(point[-1].m_position, point[0].m_position); spc[0] = cM3d_Len3dSqPntAndSegLine(&lin, r31, &sp30[0], &sp8); } if (nearIdx != r26->m_num-1) { - lin.set(point[0].mPos, point[1].mPos); + lin.set(point[0].m_position, point[1].m_position); spc[1] = cM3d_Len3dSqPntAndSegLine(&lin, r31, &sp30[1], &sp8); } @@ -68,7 +68,7 @@ void dEnvSe_getNearPathPos(cXyz* r30, cXyz* r31, dPath* r26) { if (spc[1]) { *r30 = sp30[1]; } else { - *r30 = point[0].mPos;; + *r30 = point[0].m_position; } } } |
