summaryrefslogtreecommitdiffstats
path: root/src/entities/Physical.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-30 17:13:38 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-30 17:13:38 +0200
commit81094f2cd7bae231c91c0be48449ab2457525d82 (patch)
tree2f1588ebc2c597acea7976bec207e68efda5f3de /src/entities/Physical.cpp
parentFix MakeSureSlotInObjectPoolIsEmpty (diff)
downloadre3-81094f2cd7bae231c91c0be48449ab2457525d82.tar
re3-81094f2cd7bae231c91c0be48449ab2457525d82.tar.gz
re3-81094f2cd7bae231c91c0be48449ab2457525d82.tar.bz2
re3-81094f2cd7bae231c91c0be48449ab2457525d82.tar.lz
re3-81094f2cd7bae231c91c0be48449ab2457525d82.tar.xz
re3-81094f2cd7bae231c91c0be48449ab2457525d82.tar.zst
re3-81094f2cd7bae231c91c0be48449ab2457525d82.zip
Diffstat (limited to '')
-rw-r--r--src/entities/Physical.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp
index 16070dc4..107afccb 100644
--- a/src/entities/Physical.cpp
+++ b/src/entities/Physical.cpp
@@ -1886,7 +1886,7 @@ CPhysical::ProcessCollision(void)
// TODO: get rid of copy paste?
if(CheckCollision()){
if(IsPed() && m_vecMoveSpeed.z == 0.0f &&
- !ped->m_ped_flagA2 &&
+ !ped->bWasStanding &&
ped->bIsStanding)
savedMatrix.GetPosition().z = GetPosition().z;
GetMatrix() = savedMatrix;
@@ -1894,7 +1894,7 @@ CPhysical::ProcessCollision(void)
return;
}
if(IsPed() && m_vecMoveSpeed.z == 0.0f &&
- !ped->m_ped_flagA2 &&
+ !ped->bWasStanding &&
ped->bIsStanding)
savedMatrix.GetPosition().z = GetPosition().z;
GetMatrix() = savedMatrix;