Fixed shop's min rocket ammo for double/micro missiles.
This commit is contained in:
parent
91fa93b448
commit
edda015169
|
@ -279,7 +279,8 @@ void doCollectables()
|
|||
break;
|
||||
|
||||
case P_ROCKET:
|
||||
limitCharAdd(&player.ammo[1], collectable->value, 0, currentGame.maxRocketAmmo);
|
||||
limitCharAdd(&player.ammo[1], collectable->value, 0,
|
||||
currentGame.maxRocketAmmo);
|
||||
if (player.ammo[1] == currentGame.maxRocketAmmo)
|
||||
sprintf(temp, "Rocket Ammo at Maximum");
|
||||
else
|
||||
|
|
|
@ -478,14 +478,14 @@ static void buy(int i)
|
|||
if (player.weaponType[1] == W_DOUBLE_ROCKETS)
|
||||
{shopSelectedItem = -8; return;}
|
||||
player.weaponType[1] = W_DOUBLE_ROCKETS;
|
||||
limitChar(¤tGame.maxRocketAmmo, 10, 50);
|
||||
limitChar(¤tGame.maxRocketAmmo, 5, 50);
|
||||
shopSelectedItem = -1;
|
||||
break;
|
||||
case 11:
|
||||
if (player.weaponType[1] == W_MICRO_ROCKETS)
|
||||
{shopSelectedItem = -8; return;}
|
||||
player.weaponType[1] = W_MICRO_ROCKETS;
|
||||
limitChar(¤tGame.maxRocketAmmo, 10, 50);
|
||||
limitChar(¤tGame.maxRocketAmmo, 5, 50);
|
||||
shopSelectedItem = -1;
|
||||
break;
|
||||
case 12:
|
||||
|
|
Loading…
Reference in New Issue