- Allow subclasses when checking for PowerWeaponLevel2.

SVN r3314 (trunk)
This commit is contained in:
Randy Heit 2011-11-07 00:43:41 +00:00
commit f00f5d2304
6 changed files with 7 additions and 6 deletions

View file

@ -126,7 +126,7 @@ bool AWeapon::Use (bool pickup)
// weapon, if one exists.
if (SisterWeapon != NULL &&
SisterWeapon->WeaponFlags & WIF_POWERED_UP &&
Owner->FindInventory (RUNTIME_CLASS(APowerWeaponLevel2)))
Owner->FindInventory (RUNTIME_CLASS(APowerWeaponLevel2), true))
{
useweap = SisterWeapon;
}