From 70e5c93a2e9319aba02267706058484096e9ca4d Mon Sep 17 00:00:00 2001 From: Greyscale Date: Mon, 27 Jul 2009 13:35:00 -0700 Subject: [PATCH] Fixed some potential problems in zmarket handling NVGs. Removed some redundant logic checks. --- src/zr/weapons/zmarket.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zr/weapons/zmarket.inc b/src/zr/weapons/zmarket.inc index c1dfcb4..739a271 100644 --- a/src/zr/weapons/zmarket.inc +++ b/src/zr/weapons/zmarket.inc @@ -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)