summaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-02 17:02:45 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-02 17:02:45 +0200
commit7d067684ff4c69ecaf911ca23b478087f5655437 (patch)
treea47fbbaf7937616d80e799f3a9157d933c1f69c0 /src/weapons
parentchanged saving compatibility (diff)
parentA bit more audio cleanup (diff)
downloadre3-7d067684ff4c69ecaf911ca23b478087f5655437.tar
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.gz
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.bz2
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.lz
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.xz
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.zst
re3-7d067684ff4c69ecaf911ca23b478087f5655437.zip
Diffstat (limited to 'src/weapons')
-rw-r--r--src/weapons/ProjectileInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/weapons/ProjectileInfo.cpp b/src/weapons/ProjectileInfo.cpp
index 2fba42e3..8297d953 100644
--- a/src/weapons/ProjectileInfo.cpp
+++ b/src/weapons/ProjectileInfo.cpp
@@ -245,7 +245,7 @@ CProjectileInfo::IsProjectileInRange(float x1, float x2, float y1, float y2, flo
for (int i = 0; i < ARRAY_SIZE(ms_apProjectile); i++) {
if (gaProjectileInfo[i].m_bInUse) {
if (gaProjectileInfo[i].m_eWeaponType == WEAPONTYPE_ROCKETLAUNCHER || gaProjectileInfo[i].m_eWeaponType == WEAPONTYPE_MOLOTOV || gaProjectileInfo[i].m_eWeaponType == WEAPONTYPE_GRENADE) {
- CVector &pos = ms_apProjectile[i]->GetPosition();
+ const CVector &pos = ms_apProjectile[i]->GetPosition();
if (pos.x >= x1 && pos.x <= x2 && pos.y >= y1 && pos.y <= y2 && pos.z >= z1 && pos.z <= z2) {
result = true;
if (remove) {