Skip to content

Commit

Permalink
Remove tftrue_whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
AnAkkk committed Aug 20, 2015
1 parent cb21e6c commit 5f20c7f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
26 changes: 0 additions & 26 deletions items.cpp
Expand Up @@ -28,8 +28,6 @@ ConVar tftrue_no_misc("tftrue_no_misc", "0", FCVAR_NOTIFY, "Activate/Desactivate
true, 0, true, 1, CItems::RebuildWhitelist);
ConVar tftrue_no_action("tftrue_no_action", "0", FCVAR_NOTIFY, "Activate/Desactivate action items.",
true, 0, true, 1, CItems::RebuildWhitelist);
ConVar tftrue_whitelist("tftrue_whitelist", "0", FCVAR_NOTIFY, "Deprecated, please use tftrue_whitelist_id.",
true, 0, true, 2, CItems::WhiteListCallback);
ConVar tftrue_whitelist_id("tftrue_whitelist_id", "-1", FCVAR_NOTIFY, "ID of the whitelist to use from whitelist.tf", CItems::RebuildWhitelist);

CItems::CItems()
Expand Down Expand Up @@ -308,30 +306,6 @@ void CItems::TournamentWhitelistCallback(IConVar *var, const char *pOldValue, fl
}
}

void CItems::WhiteListCallback(IConVar *var, const char *pOldValue, float flOldValue)
{
ConVar *pVar = (ConVar*)var;
switch(pVar->GetInt())
{
case CTournament::CONFIG_ETF2L6v6:
{
tftrue_whitelist_id.SetValue("etf2l_6v6");
break;
}
case CTournament::CONFIG_ETF2L9v9:
{
tftrue_whitelist_id.SetValue("etf2l_9v9");
break;
}
}

if(pVar->GetInt() != 0)
{
AllMessage("\003[TFTrue] tftrue_whitelist is deprecated, please use tftrue_whitelist_id!\n");
Msg("[TFTrue] tftrue_whitelist is deprecated, please use tftrue_whitelist_id!\n");
}
}

const char* CItems::GetItemLogName(int iDefIndex)
{
void *pEconItemSystem = reinterpret_cast<ItemSystemFn>(ItemSystem)();
Expand Down
1 change: 0 additions & 1 deletion items.h
Expand Up @@ -35,7 +35,6 @@ class CItems

static void RebuildWhitelist(IConVar *var, const char *pOldValue, float flOldValue);
static void TournamentWhitelistCallback(IConVar *var, const char *pOldValue, float flOldValue);
static void WhiteListCallback(IConVar *var, const char *pOldValue, float flOldValue);

KeyValues *item_whitelist = nullptr;
KeyValues *item_schema = nullptr;
Expand Down

0 comments on commit 5f20c7f

Please sign in to comment.