Fixed possibility of getting 0 rockets from powerup.

This commit is contained in:
Layla Marchant 2020-03-07 21:10:47 -05:00
parent cfecdbd585
commit 376df3cfe7
1 changed files with 3 additions and 1 deletions

View File

@ -164,7 +164,9 @@ void collectable_add(float x, float y, int type, int value, int life)
// rockets. Causes problems otherwise :)
if (type == P_ROCKET)
{
if ((player.weaponType[1] == W_CHARGER) || (player.weaponType[1] == W_LASER))
if ((player.weaponType[1] == W_CHARGER) ||
(player.weaponType[1] == W_LASER) ||
(value < 10))
{
type = P_CASH;
}