From b72d243f9b1ef4d107bb33df3d74cf0ecf488cda Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Fri, 28 Mar 2025 20:31:04 -0400 Subject: Cleanup the 3 path/point structs --- src/d/d_stage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/d/d_stage.cpp') diff --git a/src/d/d_stage.cpp b/src/d/d_stage.cpp index 9eeb12ea..45fc7e8f 100644 --- a/src/d/d_stage.cpp +++ b/src/d/d_stage.cpp @@ -1758,7 +1758,7 @@ int dStage_pathInfoInit(dStage_dt_c* i_stage, void* i_data, int i_num, void*) { i_stage->setPathInfo(pStagePath); for (s32 i = 0; i < pStagePath->num; pPath++, i++) - pPath->mpPnt = (dPath__Point*)((u32)*((int*)i_stage->getPntInf()+1) + (u32)pPath->mpPnt); // TODO clean this up + pPath->m_points = (dPnt*)((u32)pPath->m_points + i_stage->getPntInf()->m_pnt_offset); return 1; } @@ -1775,7 +1775,7 @@ int dStage_rpatInfoInit(dStage_dt_c* i_stage, void* i_data, int i_num, void*) { i_stage->setPath2Info(pStagePath); for (s32 i = 0; i < pStagePath->num; pPath++, i++) - pPath->mpPnt = (dPath__Point*)((u32)*((int*)i_stage->getPnt2Inf()+1) + (u32)pPath->mpPnt); // TODO clean this up + pPath->m_points = (dPnt*)((u32)pPath->m_points + i_stage->getPnt2Inf()->m_pnt_offset); return 1; } -- cgit v1.2.3