Fix dPnt struct (#2361)

* Fix dPnt struct

* Fix Vec warning
This commit is contained in:
LagoLunatic
2025-03-30 18:45:59 -04:00
committed by GitHub
parent 7ac9c97e33
commit a87e831b18
38 changed files with 82 additions and 80 deletions
+2 -2
View File
@@ -325,7 +325,7 @@ void daE_PM_c::SearchFarP() {
//! @bug best_distance is not initialized
f32 best_distance;
int best_index;
dStage_dPnt_c* pnt = dPath_GetPnt(mpPath, 0);
dPnt* pnt = dPath_GetPnt(mpPath, 0);
cXyz point(pnt->m_position.x, pnt->m_position.y, pnt->m_position.z);
for (int i = 0; i < mpPath->m_num; i++) {
pnt = dPath_GetPnt(mpPath, i);
@@ -343,7 +343,7 @@ void daE_PM_c::SearchFarP() {
/* 80742C94-80742E1C 000E94 0188+00 3/3 0/0 0/0 .text SearchNearP__8daE_PM_cFv */
void daE_PM_c::SearchNearP() {
//! @bug Whatever this function is supposed to do is almost certainly not what it actually does.
dStage_dPnt_c* pnt = dPath_GetPnt(mpPath, 0);
dPnt* pnt = dPath_GetPnt(mpPath, 0);
if (current.pos.absXZ(pnt->m_position) < 1.0e9f) {
mPoint = pnt->m_position;
}