summaryrefslogtreecommitdiffstats
path: root/src/weapons/ShotInfo.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-07-25 10:58:03 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-07-25 10:58:03 +0200
commitb69222e017560efb8abcff899a328e2879d271c7 (patch)
tree1ad242f91e9420f66531ca8758c899ac64d7e062 /src/weapons/ShotInfo.cpp
parentMerge remote-tracking branch 'upstream/lcs' into lcs (diff)
downloadre3-b69222e017560efb8abcff899a328e2879d271c7.tar
re3-b69222e017560efb8abcff899a328e2879d271c7.tar.gz
re3-b69222e017560efb8abcff899a328e2879d271c7.tar.bz2
re3-b69222e017560efb8abcff899a328e2879d271c7.tar.lz
re3-b69222e017560efb8abcff899a328e2879d271c7.tar.xz
re3-b69222e017560efb8abcff899a328e2879d271c7.tar.zst
re3-b69222e017560efb8abcff899a328e2879d271c7.zip
Diffstat (limited to '')
-rw-r--r--src/weapons/ShotInfo.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/weapons/ShotInfo.cpp b/src/weapons/ShotInfo.cpp
index 788bcbe1..b98eaf7a 100644
--- a/src/weapons/ShotInfo.cpp
+++ b/src/weapons/ShotInfo.cpp
@@ -143,7 +143,9 @@ CShotInfo::Update()
}
}
}
- if (!((CTimer::GetFrameCounter() + slot) & 3))
- CWorld::SetCarsOnFire(shot.m_startPos.x, shot.m_startPos.y, shot.m_startPos.z, 4.0f, shot.m_sourceEntity);
+ if (!((CTimer::GetFrameCounter() + slot) & 3)) {
+ CWorld::SetCarsOnFire(shot.m_startPos.x, shot.m_startPos.y, shot.m_startPos.z, 2.0f, shot.m_sourceEntity);
+ CWorld::CheckObjectsEffectedByFire(shot.m_startPos.x, shot.m_startPos.y, shot.m_startPos.z, 2.0f, shot.m_sourceEntity);
+ }
}
}