mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-20 10:32:17 +00:00
- fixed: TakeInventory needs to check for subclasses of PowerInfiniteAmmo.
This commit is contained in:
parent
c7cf619ff4
commit
3a5124e10e
1 changed files with 1 additions and 1 deletions
|
@ -902,7 +902,7 @@ bool AActor::TakeInventory(PClassActor *itemclass, int amount, bool fromdecorate
|
||||||
// Do not take ammo if the "no take infinite/take as ammo depletion" flag is set
|
// Do not take ammo if the "no take infinite/take as ammo depletion" flag is set
|
||||||
// and infinite ammo is on
|
// and infinite ammo is on
|
||||||
if (notakeinfinite &&
|
if (notakeinfinite &&
|
||||||
((dmflags & DF_INFINITE_AMMO) || (player && FindInventory(NAME_PowerInfiniteAmmo))) && item->IsKindOf(NAME_Ammo))
|
((dmflags & DF_INFINITE_AMMO) || (player && FindInventory(NAME_PowerInfiniteAmmo, true))) && item->IsKindOf(NAME_Ammo))
|
||||||
{
|
{
|
||||||
// Nothing to do here, except maybe res = false;? Would it make sense?
|
// Nothing to do here, except maybe res = false;? Would it make sense?
|
||||||
result = false;
|
result = false;
|
||||||
|
|
Loading…
Reference in a new issue