From 431b444e1f4497ee9ea71d347318741078669b62 Mon Sep 17 00:00:00 2001 From: zaCade Date: Sat, 9 Mar 2019 13:54:06 +0100 Subject: [PATCH] ZMarket: Only grab 'zmarket' name on CSGO. CSS doesnt fuck up capitalization, unlike CSGO... --- src/zr/weapons/menu_weapons.inc | 2 +- src/zr/weapons/weapons.inc | 2 +- src/zr/weapons/zmarket.inc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/zr/weapons/menu_weapons.inc b/src/zr/weapons/menu_weapons.inc index e816382..6111fb3 100644 --- a/src/zr/weapons/menu_weapons.inc +++ b/src/zr/weapons/menu_weapons.inc @@ -239,7 +239,7 @@ WeaponsMenuTypeWeapons(client) new weaponindex = GetArrayCell(arrayTypeWeapons, x); // Get name of weapon. - WeaponsGetName(weaponindex, typeweapon, sizeof(typeweapon), true); + WeaponsGetName(weaponindex, typeweapon, sizeof(typeweapon), (g_Game == Game_CSGO)); strcopy(display, sizeof(display), typeweapon); if (RestrictIsWeaponRestricted(weaponindex)) diff --git a/src/zr/weapons/weapons.inc b/src/zr/weapons/weapons.inc index 6bbd6a3..dd0da57 100644 --- a/src/zr/weapons/weapons.inc +++ b/src/zr/weapons/weapons.inc @@ -471,7 +471,7 @@ stock WeaponsEntityToDisplay(const String:entityname[], String:display[], displa } // The entity names match, so return display. - WeaponsGetName(x, display, displaymaxlen, true); + WeaponsGetName(x, display, displaymaxlen, (g_Game == Game_CSGO)); // Return the weapon index. return x; diff --git a/src/zr/weapons/zmarket.inc b/src/zr/weapons/zmarket.inc index 6a86257..4fbda0b 100644 --- a/src/zr/weapons/zmarket.inc +++ b/src/zr/weapons/zmarket.inc @@ -610,7 +610,7 @@ ZMarketMenuLoadoutWeapons(client, WeaponsSlot:slot) if(wslot != slot) continue; - WeaponsGetName(weaponindex, weaponname, sizeof(weaponname), true); + WeaponsGetName(weaponindex, weaponname, sizeof(weaponname), (g_Game == Game_CSGO)); // Get restricted status on the weapon. new bool:restricted = RestrictIsWeaponRestricted(weaponindex); @@ -802,7 +802,7 @@ ZMarketMenuTypeWeapons(client) new weaponindex = GetArrayCell(arrayTypeWeapons, x); // Get name of weapon. - WeaponsGetName(weaponindex, typeweapon, sizeof(typeweapon), true); + WeaponsGetName(weaponindex, typeweapon, sizeof(typeweapon), (g_Game == Game_CSGO)); // Get entity name of weapon. WeaponsGetEntity(weaponindex, typeweaponentity, sizeof(typeweaponentity));