summaryrefslogtreecommitdiffstats
path: root/src/control/Script5.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-25 20:01:00 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-25 20:01:00 +0200
commitd83b8cf940b9116a334ae982126b38de06caecfd (patch)
tree9b819d88fce9719c9f78557ff10025592b322e40 /src/control/Script5.cpp
parentMerge remote-tracking branch 'upstream/lcs' into lcs (diff)
parentFix (diff)
downloadre3-d83b8cf940b9116a334ae982126b38de06caecfd.tar
re3-d83b8cf940b9116a334ae982126b38de06caecfd.tar.gz
re3-d83b8cf940b9116a334ae982126b38de06caecfd.tar.bz2
re3-d83b8cf940b9116a334ae982126b38de06caecfd.tar.lz
re3-d83b8cf940b9116a334ae982126b38de06caecfd.tar.xz
re3-d83b8cf940b9116a334ae982126b38de06caecfd.tar.zst
re3-d83b8cf940b9116a334ae982126b38de06caecfd.zip
Diffstat (limited to 'src/control/Script5.cpp')
-rw-r--r--src/control/Script5.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script5.cpp b/src/control/Script5.cpp
index f6036b50..502e6d72 100644
--- a/src/control/Script5.cpp
+++ b/src/control/Script5.cpp
@@ -1928,7 +1928,7 @@ bool CRunningScript::CheckDamagedWeaponType(int32 actual, int32 type)
if (type == WEAPONTYPE_ANYMELEE) {
if (actual <= WEAPONTYPE_CHAINSAW)
return true;
- if (actual - WEAPONTYPE_GRENADE <= WEAPONTYPE_MINIGUN)
+ if (actual >= WEAPONTYPE_GRENADE && actual <= WEAPONTYPE_UNIDENTIFIED)
return false;
return false;
}