summaryrefslogtreecommitdiff
path: root/src/d/d_stage.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-03-28 20:31:04 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-03-28 20:31:04 -0400
commitb72d243f9b1ef4d107bb33df3d74cf0ecf488cda (patch)
treeea6bd66aa4e38033036af1ebd67e816d7683bc9c /src/d/d_stage.cpp
parent8cfd2f7a1e93e7c9a256589f3997e67a02a60f9d (diff)
Cleanup the 3 path/point structs
Diffstat (limited to 'src/d/d_stage.cpp')
-rw-r--r--src/d/d_stage.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}