diff --git a/src/game/client/components/ghost.cpp b/src/game/client/components/ghost.cpp index 855660310..d5265d49f 100644 --- a/src/game/client/components/ghost.cpp +++ b/src/game/client/components/ghost.cpp @@ -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; diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index a5865feb5..f7b9ca0aa 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -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]; diff --git a/src/game/server/gamecontext.h b/src/game/server/gamecontext.h index 3c0588670..e0c8ce146 100644 --- a/src/game/server/gamecontext.h +++ b/src/game/server/gamecontext.h @@ -176,7 +176,6 @@ private: bool m_VoteWillPass; class IScore *m_pScore; - int m_VoteEnforcer; //DDRace Console Commands