mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Pointer naming convention
This commit is contained in:
parent
c1952d3ff1
commit
32189f8485
|
@ -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++;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue