diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-10-18 15:40:06 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-10-18 15:40:06 +0200 |
commit | b91f6a45501634b55f6ef2c08d57c5293d5fd3a0 (patch) | |
tree | 34cdedbe9dda385d48a416d1c26ef220132d35f0 /src/weapons/BulletInfo.cpp | |
parent | Cleanup breaks CAutomobile::ProcessOpenDoor (diff) | |
download | re3-b91f6a45501634b55f6ef2c08d57c5293d5fd3a0.tar re3-b91f6a45501634b55f6ef2c08d57c5293d5fd3a0.tar.gz re3-b91f6a45501634b55f6ef2c08d57c5293d5fd3a0.tar.bz2 re3-b91f6a45501634b55f6ef2c08d57c5293d5fd3a0.tar.lz re3-b91f6a45501634b55f6ef2c08d57c5293d5fd3a0.tar.xz re3-b91f6a45501634b55f6ef2c08d57c5293d5fd3a0.tar.zst re3-b91f6a45501634b55f6ef2c08d57c5293d5fd3a0.zip |
Diffstat (limited to 'src/weapons/BulletInfo.cpp')
-rw-r--r-- | src/weapons/BulletInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/weapons/BulletInfo.cpp b/src/weapons/BulletInfo.cpp index 15dde011..e87a7407 100644 --- a/src/weapons/BulletInfo.cpp +++ b/src/weapons/BulletInfo.cpp @@ -185,11 +185,11 @@ void CBulletInfo::Update(void) if (pHitEntity->IsObject()) { CObject* pObject = (CObject*)pHitEntity; if (!pObject->bInfiniteMass) { - if (pObject->IsStatic() && pObject->m_fUprootLimit <= 0.0f) { - pObject->bIsStatic = false; + if (pObject->GetIsStatic() && pObject->m_fUprootLimit <= 0.0f) { + pObject->SetIsStatic(false); pObject->AddToMovingList(); } - if (!pObject->IsStatic()) + if (!pObject->GetIsStatic()) pObject->ApplyMoveForce(-BULLET_HIT_FORCE * point.normal); } } |