mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 01:21:17 +00:00
- fixed: For an initial weapon pickup, sv_unlimited_pickup wasn't checked for the included ammo.
This commit is contained in:
parent
fdd6e3cec9
commit
3291cecad9
1 changed files with 2 additions and 2 deletions
|
@ -717,10 +717,10 @@ class Weapon : StateProvider
|
|||
ammoitem.Amount = MIN (amount, ammoitem.MaxAmount);
|
||||
ammoitem.AttachToOwner (other);
|
||||
}
|
||||
else if (ammoitem.Amount < ammoitem.MaxAmount)
|
||||
else if (ammoitem.Amount < ammoitem.MaxAmount || sv_unlimited_pickup)
|
||||
{
|
||||
ammoitem.Amount += amount;
|
||||
if (ammoitem.Amount > ammoitem.MaxAmount)
|
||||
if (ammoitem.Amount > ammoitem.MaxAmount && !sv_unlimited_pickup)
|
||||
{
|
||||
ammoitem.Amount = ammoitem.MaxAmount;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue