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
+4 -4
View File
@@ -7,7 +7,7 @@
#include "d/d_com_inf_game.h"
/* 800517B0-800517EC 04C0F0 003C+00 0/0 7/7 63/63 .text dPath_GetPnt__FPC5dPathi */
dStage_dPnt_c* dPath_GetPnt(dPath const* path, int pnt_index) {
dPnt* dPath_GetPnt(dPath const* path, int pnt_index) {
if (path == NULL || path->m_points == NULL || pnt_index < 0 || pnt_index >= path->m_num) {
return NULL;
}
@@ -94,10 +94,10 @@ u8 dPath_GetPolyRoomPathVec(cBgS_PolyInfo const& poly, cXyz* p_pathVec, int* par
return 0;
}
dStage_dPnt_c* pnt_start = path->m_points;
dStage_dPnt_c* pnt_end = &pnt_start[pnt_no];
dPnt* pnt_start = path->m_points;
dPnt* pnt_end = &pnt_start[pnt_no];
dStage_dPnt_c* pnt_begin;
dPnt* pnt_begin;
if (pnt_no == path->m_num - 1) {
pnt_begin = pnt_start;
} else {