diff options
author | withmorten <morten.with@gmail.com> | 2021-01-21 21:55:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 21:55:33 +0100 |
commit | ef24783bff1dc74a846966660005cfefe23d48a2 (patch) | |
tree | b123f26121b59226b05bf87a36dec621890de0b3 /src/entities | |
parent | update librw (diff) | |
parent | codewarrior: finishing touches (diff) | |
download | re3-ef24783bff1dc74a846966660005cfefe23d48a2.tar re3-ef24783bff1dc74a846966660005cfefe23d48a2.tar.gz re3-ef24783bff1dc74a846966660005cfefe23d48a2.tar.bz2 re3-ef24783bff1dc74a846966660005cfefe23d48a2.tar.lz re3-ef24783bff1dc74a846966660005cfefe23d48a2.tar.xz re3-ef24783bff1dc74a846966660005cfefe23d48a2.tar.zst re3-ef24783bff1dc74a846966660005cfefe23d48a2.zip |
Diffstat (limited to 'src/entities')
-rw-r--r-- | src/entities/Physical.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp index 24017e19..ed01297e 100644 --- a/src/entities/Physical.cpp +++ b/src/entities/Physical.cpp @@ -1092,7 +1092,7 @@ CPhysical::ProcessShiftSectorList(CPtrList *lists) int numCollisions; int mostColliding; CColPoint colpoints[MAX_COLLISION_POINTS]; - CVector shift = { 0.0f, 0.0f, 0.0f }; + CVector shift = CVector(0.0f, 0.0f, 0.0f); bool doShift = false; CEntity *boat = nil; @@ -1539,8 +1539,8 @@ CPhysical::ProcessCollisionSectorList(CPtrList *lists) if(numCollisions <= 0) continue; - CVector moveSpeed = { 0.0f, 0.0f, 0.0f }; - CVector turnSpeed = { 0.0f, 0.0f, 0.0f }; + CVector moveSpeed = CVector(0.0f, 0.0f, 0.0f); + CVector turnSpeed = CVector(0.0f, 0.0f, 0.0f); numResponses = 0; if(A->bHasContacted){ for(i = 0; i < numCollisions; i++){ @@ -1899,8 +1899,8 @@ CPhysical::ProcessCollision(void) }else if(IsObject()){ int responsecase = ((CObject*)this)->m_nSpecialCollisionResponseCases; if(responsecase == COLLRESPONSE_LAMPOST){ - CVector speedUp = { 0.0f, 0.0f, 0.0f }; - CVector speedDown = { 0.0f, 0.0f, 0.0f }; + CVector speedUp = CVector(0.0f, 0.0f, 0.0f); + CVector speedDown = CVector(0.0f, 0.0f, 0.0f); speedUp.z = GetBoundRadius(); speedDown.z = -speedUp.z; speedUp = Multiply3x3(GetMatrix(), speedUp); |