mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Rename 'Reputation_t' enumerant
This commit is contained in:
parent
dcc2c6224b
commit
793c2e8e50
@ -10,7 +10,7 @@ enum Reputation_t
|
||||
{
|
||||
REP_NONE = 0,
|
||||
REP_REMOVE_ONLY,
|
||||
REP_MARK
|
||||
REP_MARK_BAD
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user