summaryrefslogtreecommitdiffstats
path: root/src/weapons/Explosion.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-18 01:58:09 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-18 01:58:09 +0100
commitcfda5eb148abdb502b049083c83f166460ccc8be (patch)
tree290b84a8053f37f3b676fd26314631a528f04630 /src/weapons/Explosion.cpp
parentFix placement of some script functions (diff)
downloadre3-cfda5eb148abdb502b049083c83f166460ccc8be.tar
re3-cfda5eb148abdb502b049083c83f166460ccc8be.tar.gz
re3-cfda5eb148abdb502b049083c83f166460ccc8be.tar.bz2
re3-cfda5eb148abdb502b049083c83f166460ccc8be.tar.lz
re3-cfda5eb148abdb502b049083c83f166460ccc8be.tar.xz
re3-cfda5eb148abdb502b049083c83f166460ccc8be.tar.zst
re3-cfda5eb148abdb502b049083c83f166460ccc8be.zip
Diffstat (limited to 'src/weapons/Explosion.cpp')
-rw-r--r--src/weapons/Explosion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/weapons/Explosion.cpp b/src/weapons/Explosion.cpp
index 515dff94..38ce6e53 100644
--- a/src/weapons/Explosion.cpp
+++ b/src/weapons/Explosion.cpp
@@ -220,7 +220,7 @@ CExplosion::AddExplosion(CEntity *explodingEntity, CEntity *culprit, eExplosionT
} else if (veh->IsComponentPresent(CAR_BOOT)) {
veh->GetComponentWorldPosition(CAR_BOOT, componentPos);
}
- if (componentPos != nil) {
+ if (componentPos.x != 0.0f) {
int rn = (CGeneral::GetRandomNumber() & 1) + 1;
for (int i = 0; i < rn; i++)
CParticle::AddJetExplosion(componentPos, (CGeneral::GetRandomNumber() & 7) / 7.0f + 1.5f, 0.5f);