- Added Karate Chris's 'sv_doubleammo' submission.
SVN r625 (trunk)
This commit is contained in:
parent
ac04233590
commit
1791acfb56
5 changed files with 8 additions and 1 deletions
|
|
@ -82,6 +82,10 @@ bool AAmmo::HandlePickup (AInventory *item)
|
|||
receiving = FixedMul(receiving, G_SkillProperty(SKILLP_AmmoFactor));
|
||||
}
|
||||
int oldamount = Amount;
|
||||
|
||||
if (dmflags2 & DF2_YES_DOUBLEAMMO)
|
||||
receiving *= 2;
|
||||
|
||||
Amount += receiving;
|
||||
if (Amount > MaxAmount)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue