mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- fixed: powered up weapons must not be added to the weapon slots.
SVN r3612 (trunk)
This commit is contained in:
parent
1656744827
commit
81b4f782f7
1 changed files with 1 additions and 0 deletions
|
@ -1192,6 +1192,7 @@ void FWeaponSlots::AddExtraWeapons()
|
|||
(cls->ActorInfo->GameFilter == GAME_Any || (cls->ActorInfo->GameFilter & gameinfo.gametype)) &&
|
||||
cls->ActorInfo->Replacement == NULL && // Replaced weapons don't get slotted.
|
||||
cls->IsDescendantOf(RUNTIME_CLASS(AWeapon)) &&
|
||||
!(static_cast<AWeapon*>(GetDefaultByType(cls))->WeaponFlags & WIF_POWERED_UP) &&
|
||||
!LocateWeapon(cls, NULL, NULL) // Don't duplicate it if it's already present.
|
||||
)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue