mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Some Clean up: closes #28
* m_VoteEnforcer variable is never used. * pController variable is not used in OnMessage scoop. * CNetObj_ClientInfo have now only 4 m_Name ints, so change it to 4 in ghost.cpp
This commit is contained in:
parent
87dc38ee06
commit
f4ca6d9ad5
|
@ -328,7 +328,7 @@ void CGhost::Save()
|
|||
mem_zero(&Header, sizeof(Header));
|
||||
mem_copy(Header.m_aMarker, gs_aHeaderMarker, sizeof(Header.m_aMarker));
|
||||
Header.m_Version = gs_ActVersion;
|
||||
IntsToStr(&m_CurGhost.m_Info.m_Name0, 6, Header.m_aOwner);
|
||||
IntsToStr(&m_CurGhost.m_Info.m_Name0, 4, Header.m_aOwner);
|
||||
str_copy(Header.m_aMap, Client()->GetCurrentMap(), sizeof(Header.m_aMap));
|
||||
Header.m_aCrc[0] = (Crc>>24)&0xff;
|
||||
Header.m_aCrc[1] = (Crc>>16)&0xff;
|
||||
|
|
|
@ -547,7 +547,6 @@ void CGameContext::OnTick()
|
|||
Console()->ExecuteLine(m_aVoteCommand, -1, IConsole::CONSOLELEVEL_ADMIN, SendChatResponseAll, this);
|
||||
SendChat(-1, CGameContext::CHAT_ALL, aBuf);
|
||||
EndVote();
|
||||
m_VoteEnforcer = -1;
|
||||
}
|
||||
else if(m_VoteEnforce == VOTE_ENFORCE_NO_ADMIN)
|
||||
{
|
||||
|
@ -709,7 +708,6 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
|
|||
{
|
||||
void *pRawMsg = m_NetObjHandler.SecureUnpackMsg(MsgID, pUnpacker);
|
||||
CPlayer *pPlayer = m_apPlayers[ClientID];
|
||||
CGameControllerDDRace* pController = (CGameControllerDDRace*)m_pController;
|
||||
if(!pRawMsg)
|
||||
{
|
||||
char aBuf[256];
|
||||
|
|
|
@ -176,7 +176,6 @@ private:
|
|||
|
||||
bool m_VoteWillPass;
|
||||
class IScore *m_pScore;
|
||||
int m_VoteEnforcer;
|
||||
|
||||
//DDRace Console Commands
|
||||
|
||||
|
|
Loading…
Reference in a new issue