diff --git a/quakec/fallout2/items.qc b/quakec/fallout2/items.qc index 311cf0df5..ca5abaa36 100644 --- a/quakec/fallout2/items.qc +++ b/quakec/fallout2/items.qc @@ -1525,22 +1525,22 @@ void() BackpackTouch = if (self.weapon == 1) { - AddStackable(other, IID_AM_10MM, 9+random()*9); + AddStackable(other, IID_AM_10MM, floor(9+random()*9)); sprint(other, 2, " 10mm ammo"); } if (self.weapon == 2) { - AddStackable(other, IID_AM_556MM, 5+random()*5); + AddStackable(other, IID_AM_556MM, floor(5+random()*5)); sprint(other, 2, " 5mm ammo"); } if (self.weapon == 3) { - AddStackable(other, IID_AM_12GAUGESHELLS, 3+random()*3); + AddStackable(other, IID_AM_12GAUGESHELLS, floor(3+random()*3)); sprint(other, 2, " 12 gauge ammo"); } if (self.weapon == 4) { - AddStackable(other, IID_AM_10MM, 9+random()*9); + AddStackable(other, IID_AM_10MM, floor(9+random()*9)); sprint(other, 2, " 10mm ammo"); } @@ -1554,7 +1554,7 @@ void() BackpackTouch = else sprint(other, 2, ".\n"); - + remove(self); return; };