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:
Romain Labolle 2011-04-20 11:49:47 +02:00 committed by GreYFoX
parent 87dc38ee06
commit f4ca6d9ad5
3 changed files with 1 additions and 4 deletions

View file

@ -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;

View file

@ -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];

View file

@ -176,7 +176,6 @@ private:
bool m_VoteWillPass;
class IScore *m_pScore;
int m_VoteEnforcer;
//DDRace Console Commands