- Added Karate Chris's 'sv_doubleammo' submission.

SVN r625 (trunk)
This commit is contained in:
Christoph Oelckers 2007-12-23 14:57:12 +00:00
commit 1791acfb56
5 changed files with 8 additions and 1 deletions

View file

@ -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)
{