summaryrefslogtreecommitdiffstats
path: root/src/weapons/BulletInfo.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-06 18:17:47 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-06 18:17:47 +0200
commita24b65cbde23929c388e0c207b804a87346a9592 (patch)
tree6c9a63358c2bdbff7983b70001ce0684d62ca4ba /src/weapons/BulletInfo.cpp
parentMerge branch 'master' of github.com:GTAmodding/re3 (diff)
downloadre3-a24b65cbde23929c388e0c207b804a87346a9592.tar
re3-a24b65cbde23929c388e0c207b804a87346a9592.tar.gz
re3-a24b65cbde23929c388e0c207b804a87346a9592.tar.bz2
re3-a24b65cbde23929c388e0c207b804a87346a9592.tar.lz
re3-a24b65cbde23929c388e0c207b804a87346a9592.tar.xz
re3-a24b65cbde23929c388e0c207b804a87346a9592.tar.zst
re3-a24b65cbde23929c388e0c207b804a87346a9592.zip
Diffstat (limited to '')
-rw-r--r--src/weapons/BulletInfo.cpp4
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);
}
}