- Changed first name from 'none' to ''. The internal constant is still NAME_None,
though. - Fixed: Picking up a backpack incorrectly set the maximum amount for any ammo type that didn't have a BackpackMaxAmount to 0. SVN r569 (trunk)
This commit is contained in:
parent
ba61c60d52
commit
e1abe4b380
5 changed files with 12 additions and 2 deletions
|
|
@ -1511,7 +1511,7 @@ AInventory *ABackpackItem::CreateCopy (AActor *other)
|
|||
{ // The player did not have the ammo. Add it.
|
||||
ammo = static_cast<AAmmo *>(Spawn (type, 0, 0, 0, NO_REPLACE));
|
||||
ammo->Amount = bDepleted ? 0 : amount;
|
||||
ammo->MaxAmount = ammo->BackpackMaxAmount;
|
||||
if (ammo->BackpackMaxAmount > ammo->MaxAmount) ammo->MaxAmount = ammo->BackpackMaxAmount;
|
||||
ammo->AttachToOwner (other);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue