Rename 'Reputation_t' enumerant

This commit is contained in:
Kawe Mazidjatari 2022-09-20 02:04:25 +02:00
parent dcc2c6224b
commit 793c2e8e50
3 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@ enum Reputation_t
{
REP_NONE = 0,
REP_REMOVE_ONLY,
REP_MARK
REP_MARK_BAD
};
//-----------------------------------------------------------------------------

View File

@ -242,7 +242,7 @@ bool CNetChan::ProcessMessages(CNetChan* pChan, bf_read* pMsg)
{
Warning(eDLL_T::ENGINE, "Removing netchannel '%s' ('%s' exceeded frame budget by '%3.1f'ms!)\n",
pChan->GetName(), pChan->GetAddress(), (pSlot->m_flCurrentNetProcessTime - net_processTimeBudget->GetDouble()));
pClient->Disconnect(Reputation_t::REP_MARK, "#DISCONNECT_NETCHAN_OVERFLOW");
pClient->Disconnect(Reputation_t::REP_MARK_BAD, "#DISCONNECT_NETCHAN_OVERFLOW");
return false;
}

View File

@ -227,7 +227,7 @@ void CBanSystem::BanListCheck(void)
if (AddEntry(svIpAddress, pClient->GetNucleusID()) && !bSave)
bSave = true;
pClient->Disconnect(Reputation_t::REP_MARK, m_vRefuseList[i].first.c_str());
pClient->Disconnect(Reputation_t::REP_MARK_BAD, m_vRefuseList[i].first.c_str());
}
}
@ -299,7 +299,7 @@ void CBanSystem::KickPlayerByName(const string& svPlayerName)
if (strlen(pNetChan->GetName()) > 0)
{
if (svPlayerName.compare(pNetChan->GetName()) == NULL) // Our wanted name?
pClient->Disconnect(REP_MARK, "Kicked from server");
pClient->Disconnect(REP_MARK_BAD, "Kicked from server");
}
}
}
@ -344,14 +344,14 @@ void CBanSystem::KickPlayerById(const string& svHandle)
continue;
}
pClient->Disconnect(REP_MARK, "Kicked from server");
pClient->Disconnect(REP_MARK_BAD, "Kicked from server");
}
else
{
if (svHandle.compare(pNetChan->GetAddress()) != NULL)
continue;
pClient->Disconnect(REP_MARK, "Kicked from server");
pClient->Disconnect(REP_MARK_BAD, "Kicked from server");
}
}
}
@ -386,7 +386,7 @@ void CBanSystem::BanPlayerByName(const string& svPlayerName)
if (AddEntry(pNetChan->GetAddress(), pClient->GetNucleusID()) && !bSave)
bSave = true;
pClient->Disconnect(REP_MARK, "Banned from server");
pClient->Disconnect(REP_MARK_BAD, "Banned from server");
}
}
}
@ -441,7 +441,7 @@ void CBanSystem::BanPlayerById(const string& svHandle)
bSave = true;
Save();
pClient->Disconnect(REP_MARK, "Banned from server");
pClient->Disconnect(REP_MARK_BAD, "Banned from server");
}
else
{
@ -452,7 +452,7 @@ void CBanSystem::BanPlayerById(const string& svHandle)
bSave = true;
Save();
pClient->Disconnect(REP_MARK, "Banned from server");
pClient->Disconnect(REP_MARK_BAD, "Banned from server");
}
}