- Allow subclasses when checking for PowerWeaponLevel2.
SVN r3314 (trunk)
This commit is contained in:
parent
66f86add05
commit
f00f5d2304
6 changed files with 7 additions and 6 deletions
|
|
@ -672,7 +672,7 @@ AWeapon *APlayerPawn::BestWeapon (const PClass *ammotype)
|
|||
int bestOrder = INT_MAX;
|
||||
AInventory *item;
|
||||
AWeapon *weap;
|
||||
bool tomed = NULL != FindInventory (RUNTIME_CLASS(APowerWeaponLevel2));
|
||||
bool tomed = NULL != FindInventory (RUNTIME_CLASS(APowerWeaponLevel2), true);
|
||||
|
||||
// Find the best weapon the player has.
|
||||
for (item = Inventory; item != NULL; item = item->Inventory)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue