Skip to content

Commit b4e6b0a

Browse files
committed
bugfix: A projectile can no longer be jammed multiple times
1 parent b68c0b9 commit b4e6b0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Body/ActiveBody.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,9 @@ Bool ActiveBody::isSubdued() const
13231323
#if RETAIL_COMPATIBLE_CRC
13241324
return m_maxHealth <= m_currentSubdualDamage;
13251325
#else
1326+
if (getObject()->isKindOf(KINDOF_PROJECTILE))
1327+
return m_maxHealth <= m_currentSubdualDamage;
1328+
13261329
return getObject()->isDisabledByType(DISABLED_SUBDUED);
13271330
#endif
13281331
}

0 commit comments

Comments
 (0)