Pointer naming convention

This commit is contained in:
ChillerDragon 2018-04-19 11:51:10 +02:00
parent c1952d3ff1
commit 32189f8485
2 changed files with 5 additions and 5 deletions

View file

@ -345,18 +345,18 @@ void CGameContext::ConForcePause(IConsole::IResult *pResult, void *pUserData)
pPlayer->ForcePause(Seconds);
}
void CGameContext::VoteMute(IConsole::IResult *pResult, NETADDR *Addr, int Secs,
void CGameContext::VoteMute(IConsole::IResult *pResult, NETADDR *pAddr, int Secs,
const char *pDisplayName, int AuthedID)
{
char aBuf[128];
int Found = 0;
Addr->port = 0; // ignore port number for vote mutes
pAddr->port = 0; // ignore port number for vote mutes
// find a matching vote mute for this ip, update expiration time if found
for(int i = 0; i < m_NumVoteMutes; i++)
{
if(net_addr_comp(&m_aVoteMutes[i].m_Addr, Addr) == 0)
if(net_addr_comp(&m_aVoteMutes[i].m_Addr, pAddr) == 0)
{
m_aVoteMutes[i].m_Expire = Server()->Tick()
+ Secs * Server()->TickSpeed();
@ -368,7 +368,7 @@ void CGameContext::VoteMute(IConsole::IResult *pResult, NETADDR *Addr, int Secs,
{
if (m_NumVoteMutes < MAX_VOTE_BANS)
{
m_aVoteMutes[m_NumVoteMutes].m_Addr = *Addr;
m_aVoteMutes[m_NumVoteMutes].m_Addr = *pAddr;
m_aVoteMutes[m_NumVoteMutes].m_Expire = Server()->Tick()
+ Secs * Server()->TickSpeed();
m_NumVoteMutes++;

View file

@ -377,7 +377,7 @@ private:
CVoteMute m_aVoteMutes[MAX_VOTE_BANS];
int m_NumVoteMutes;
void Mute(IConsole::IResult *pResult, NETADDR *Addr, int Secs, const char *pDisplayName);
void VoteMute(IConsole::IResult *pResult, NETADDR *Addr, int Secs, const char *pDisplayName, int AuthedID);
void VoteMute(IConsole::IResult *pResult, NETADDR *pAddr, int Secs, const char *pDisplayName, int AuthedID);
void Whisper(int ClientID, char *pStr);
void WhisperID(int ClientID, int VictimID, char *pMessage);
void Converse(int ClientID, char *pStr);