Fixed some potential problems in zmarket handling NVGs.

Removed some redundant logic checks.
This commit is contained in:
Greyscale 2009-07-27 13:35:00 -07:00
parent b7018e9fe8
commit 70e5c93a2e
1 changed files with 2 additions and 2 deletions

View File

@ -630,7 +630,7 @@ ZMarketMenuTypeWeapons(client)
// Do appropriate formatting for the type of item client is buying.
new WeaponsSlot:slot = WeaponsGetSlot(weaponindex);
if (!hasweapon || slot == Slot_Invalid || slot == Slot_Projectile)
if (!hasweapon || slot == Slot_Projectile)
{
// Get the weapon price.
itemprice = WeaponsGetZMarketPrice(weaponindex);
@ -791,7 +791,7 @@ stock bool:ZMarketEquip(client, const String:weapon[], bool:rebuy = false)
// Get the appropriate price of the item being purchased.
new bool:hasweapon = WeaponsClientHasWeapon(client, weapon);
new itemprice = (hasweapon && slot != Slot_Invalid && slot != Slot_Projectile) ? WeaponsGetAmmoPrice(weaponindex) : WeaponsGetZMarketPrice(weaponindex);
new itemprice = (hasweapon && slot != Slot_Projectile) ? WeaponsGetAmmoPrice(weaponindex) : WeaponsGetZMarketPrice(weaponindex);
// If the weapon price is below 0, then something went wrong.
if (itemprice < 0)