summaryrefslogtreecommitdiff
path: root/src/control/Script5.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-25 21:01:00 +0300
committerSergeanur <s.anureev@yandex.ua>2021-07-25 21:01:00 +0300
commitd83b8cf940b9116a334ae982126b38de06caecfd (patch)
tree9b819d88fce9719c9f78557ff10025592b322e40 /src/control/Script5.cpp
parent1619d2395eb1ead70d562f6777b1a203040ce1a3 (diff)
parent5032d24ad82787d71ecc534c68f96eb9691fd673 (diff)
Merge branch 'miami' into lcs
# Conflicts: # src/renderer/Hud.cpp
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;
}