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
@@ -96,7 +96,7 @@ int daOptiLift_c::create() {
return cPhs_INIT_e;
}
dStage_dPnt_c* pointp = pathp->m_points;
dPnt* pointp = pathp->m_points;
current.pos.x = pointp->m_position.x;
current.pos.y = pointp->m_position.y;
current.pos.z = pointp->m_position.z;
@@ -416,7 +416,7 @@ void daOptiLift_c::modeInitSet2() {
/* 80C8B4D8-80C8B53C 0012B8 0064+00 2/2 0/0 0/0 .text liftReset__12daOptiLift_cFv */
void daOptiLift_c::liftReset() {
dPath* pathp = dPath_GetRoomPath(mPathID, fopAcM_GetRoomNo(this));
dStage_dPnt_c* pointp = pathp->m_points;
dPnt* pointp = pathp->m_points;
current.pos.x = pointp->m_position.x;
current.pos.y = pointp->m_position.y;
@@ -445,7 +445,7 @@ void daOptiLift_c::setNextPoint() {
mPathDirection = 1;
next_point = 1;
} else {
dStage_dPnt_c* pointp = &pathp->m_points[mCurrentPoint];
dPnt* pointp = &pathp->m_points[mCurrentPoint];
if (pointp->mArg0 == 0) {
next_point = mCurrentPoint;
}
@@ -455,7 +455,7 @@ void daOptiLift_c::setNextPoint() {
if (next_point != -1) {
mPrevTargetPos = mTargetPos;
dStage_dPnt_c* pointp = &pathp->m_points[next_point];
dPnt* pointp = &pathp->m_points[next_point];
mTargetPos.x = pointp->m_position.x;
mTargetPos.y = pointp->m_position.y;
mTargetPos.z = pointp->m_position.z;