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_magma.cpp | |
| parent | 8cfd2f7a1e93e7c9a256589f3997e67a02a60f9d (diff) | |
Cleanup the 3 path/point structs
Diffstat (limited to 'src/d/d_magma.cpp')
| -rw-r--r-- | src/d/d_magma.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/d/d_magma.cpp b/src/d/d_magma.cpp index 487ab31e..837be2d6 100644 --- a/src/d/d_magma.cpp +++ b/src/d/d_magma.cpp @@ -126,9 +126,9 @@ void dMagma_ballPath_c::setup(f32 offsY, u8 pathNo, int roomNo) { /* Nonmatching */ dPath* path = dPath_GetRoomPath(pathNo, roomNo); s32 ptNo = (s32)cM_rndF(path->m_num - 1); - dPath__Point* pt = &path->mpPnt[ptNo]; - mPos.x = pt->mPos.x + cM_rndFX(pt->mArg3 * 100.0f); - mPos.z = pt->mPos.z + cM_rndFX(pt->mArg3 * 100.0f); + dPnt* pt = &path->m_points[ptNo]; + mPos.x = pt->m_position.x + cM_rndFX(pt->mArg3 * 100.0f); + mPos.z = pt->m_position.z + cM_rndFX(pt->mArg3 * 100.0f); mScale = cM_rndF(1.0f) + 1.0f; mBaseY = offsY - cM_rndF(20.0f); mWave = cM_rndF(8.0f) * 4096.0f; @@ -424,7 +424,7 @@ dMagma_floor_c* dMagma_packet_c::newFloor(cXyz& p0, cXyz& p1, int i_roomNo, s16 if (path == NULL) return NULL; - dPath__Point* pnt = path->mpPnt; + dPnt* pnt = path->m_points; for (s32 j = 0; j < path->m_num; j++) param += (s32)(pnt->mArg3 * 4.0f); // bug? forgot to increment pnt } |
