Fix typo and update CSGOBadList (#738)

* Fix typo

* Update CSGOBadList
This commit is contained in:
Byte 2017-12-29 10:43:49 +11:00 committed by Nicholas Hastings
parent 945df342d8
commit 1706fdfed9
2 changed files with 2 additions and 1 deletions

View File

@ -157,6 +157,7 @@ void CHalfLife2::OnSourceModAllInitialized_Post()
m_CSGOBadList.add("m_flFallbackWear"); m_CSGOBadList.add("m_flFallbackWear");
m_CSGOBadList.add("m_nFallbackStatTrak"); m_CSGOBadList.add("m_nFallbackStatTrak");
m_CSGOBadList.add("m_iCompetitiveRanking"); m_CSGOBadList.add("m_iCompetitiveRanking");
m_CSGOBadList.add("m_iCompetitiveRankType");
m_CSGOBadList.add("m_nActiveCoinRank"); m_CSGOBadList.add("m_nActiveCoinRank");
m_CSGOBadList.add("m_nMusicID"); m_CSGOBadList.add("m_nMusicID");
#endif #endif

View File

@ -149,7 +149,7 @@ static cell_t GiveNamedItem(IPluginContext *pContext, const cell_t *params)
char *pWeaponName; char *pWeaponName;
pContext->LocalToString(params[2], &pWeaponName); pContext->LocalToString(params[2], &pWeaponName);
// Don't allow knives other than weapon_knife, weapon_knifegg, and wewapon_knife_t. // Don't allow knives other than weapon_knife, weapon_knifegg, and weapon_knife_t.
// Others follow pattern weapon_knife_* // Others follow pattern weapon_knife_*
size_t len = strlen(pWeaponName); size_t len = strlen(pWeaponName);
if (len >= 14 && strnicmp(pWeaponName, "weapon_knife_", 13) == 0 && !(pWeaponName[13] == 't' && pWeaponName[14] == '\0')) if (len >= 14 && strnicmp(pWeaponName, "weapon_knife_", 13) == 0 && !(pWeaponName[13] == 't' && pWeaponName[14] == '\0'))