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;
|
break;
|
||||||
|
|
||||||
case P_ROCKET:
|
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)
|
if (player.ammo[1] == currentGame.maxRocketAmmo)
|
||||||
sprintf(temp, "Rocket Ammo at Maximum");
|
sprintf(temp, "Rocket Ammo at Maximum");
|
||||||
else
|
else
|
||||||
|
|
|
@ -478,14 +478,14 @@ static void buy(int i)
|
||||||
if (player.weaponType[1] == W_DOUBLE_ROCKETS)
|
if (player.weaponType[1] == W_DOUBLE_ROCKETS)
|
||||||
{shopSelectedItem = -8; return;}
|
{shopSelectedItem = -8; return;}
|
||||||
player.weaponType[1] = W_DOUBLE_ROCKETS;
|
player.weaponType[1] = W_DOUBLE_ROCKETS;
|
||||||
limitChar(¤tGame.maxRocketAmmo, 10, 50);
|
limitChar(¤tGame.maxRocketAmmo, 5, 50);
|
||||||
shopSelectedItem = -1;
|
shopSelectedItem = -1;
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
if (player.weaponType[1] == W_MICRO_ROCKETS)
|
if (player.weaponType[1] == W_MICRO_ROCKETS)
|
||||||
{shopSelectedItem = -8; return;}
|
{shopSelectedItem = -8; return;}
|
||||||
player.weaponType[1] = W_MICRO_ROCKETS;
|
player.weaponType[1] = W_MICRO_ROCKETS;
|
||||||
limitChar(¤tGame.maxRocketAmmo, 10, 50);
|
limitChar(¤tGame.maxRocketAmmo, 5, 50);
|
||||||
shopSelectedItem = -1;
|
shopSelectedItem = -1;
|
||||||
break;
|
break;
|
||||||
case 12:
|
case 12:
|
||||||
|
|
Loading…
Reference in New Issue