diff options
author | aap <aap@papnet.eu> | 2019-06-19 18:35:51 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-19 18:35:51 +0200 |
commit | 2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f (patch) | |
tree | 4bb63db3c36f43ae63e1560d19d36ccb46ed37ac /src/entities/Physical.cpp | |
parent | implemented CPedStats (diff) | |
download | re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.gz re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.bz2 re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.lz re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.xz re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.zst re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/entities/Physical.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp index 33e2deff..f2693a68 100644 --- a/src/entities/Physical.cpp +++ b/src/entities/Physical.cpp @@ -1801,8 +1801,8 @@ CPhysical::ProcessCollision(void) n = distSq > 0.32f ? NUMSTEPS(0.3f) : NUMSTEPS(0.4f); step = savedTimeStep / n; }else if(IsObject()){ - int responsecase = ((CObject*)this)->m_bSpecialCollisionResponseCases; - if(responsecase == 1){ + int responsecase = ((CObject*)this)->m_nSpecialCollisionResponseCases; + if(responsecase == COLLRESPONSE_CHANGE_MODEL){ CVector speedUp = { 0.0f, 0.0f, 0.0f }; CVector speedDown = { 0.0f, 0.0f, 0.0f }; speedUp.z = GetBoundRadius(); @@ -1816,12 +1816,12 @@ CPhysical::ProcessCollision(void) n = NUMSTEPS(0.3f); step = savedTimeStep / n; } - }else if(responsecase == 5){ + }else if(responsecase == COLLRESPONSE_UNKNOWN5){ if(distSq >= 0.009f){ n = NUMSTEPS(0.09f); step = savedTimeStep / n; } - }else if(responsecase == 2 || responsecase == 4){ + }else if(responsecase == COLLRESPONSE_SPLIT_MODEL || responsecase == COLLRESPONSE_CHANGE_THEN_SMASH){ if(distSq >= sq(0.15f)){ n = NUMSTEPS(0.15f); step = savedTimeStep / n; |