diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-06 18:18:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-06 18:18:44 +0200 |
commit | 3895853fe7b2aab0fb88d144d598ebf853f35020 (patch) | |
tree | 6c9a63358c2bdbff7983b70001ce0684d62ca4ba /src/weapons/BulletInfo.cpp | |
parent | Merge branch 'master' of github.com:GTAmodding/re3 (diff) | |
parent | IsStatic (diff) | |
download | re3-3895853fe7b2aab0fb88d144d598ebf853f35020.tar re3-3895853fe7b2aab0fb88d144d598ebf853f35020.tar.gz re3-3895853fe7b2aab0fb88d144d598ebf853f35020.tar.bz2 re3-3895853fe7b2aab0fb88d144d598ebf853f35020.tar.lz re3-3895853fe7b2aab0fb88d144d598ebf853f35020.tar.xz re3-3895853fe7b2aab0fb88d144d598ebf853f35020.tar.zst re3-3895853fe7b2aab0fb88d144d598ebf853f35020.zip |
Diffstat (limited to 'src/weapons/BulletInfo.cpp')
-rw-r--r-- | src/weapons/BulletInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/weapons/BulletInfo.cpp b/src/weapons/BulletInfo.cpp index b7270f4b..83b6471e 100644 --- a/src/weapons/BulletInfo.cpp +++ b/src/weapons/BulletInfo.cpp @@ -156,11 +156,11 @@ void CBulletInfo::Update(void) if (pHitEntity->IsObject()) { CObject* pObject = (CObject*)pHitEntity; if (!pObject->bInfiniteMass) { - if (pObject->bIsStatic && pObject->m_fUprootLimit <= 0.0f) { + if (pObject->IsStatic() && pObject->m_fUprootLimit <= 0.0f) { pObject->bIsStatic = false; pObject->AddToMovingList(); } - if (!pObject->bIsStatic) + if (!pObject->IsStatic()) pObject->ApplyMoveForce(-BULLET_HIT_FORCE * point.normal); } } |