mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Remove unused chat response variables
This commit is contained in:
parent
3bed3be39c
commit
4061069b73
|
@ -85,7 +85,6 @@ void CGameContext::Construct(int Resetting)
|
|||
m_pVoteOptionHeap = new CHeap();
|
||||
}
|
||||
|
||||
m_ChatResponseTargetID = -1;
|
||||
m_aDeleteTempfile[0] = 0;
|
||||
m_TeeHistorianActive = false;
|
||||
}
|
||||
|
@ -1844,9 +1843,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
|
|||
pPlayer->m_LastCommands[pPlayer->m_LastCommandPos] = Now;
|
||||
pPlayer->m_LastCommandPos = (pPlayer->m_LastCommandPos + 1) % 4;
|
||||
|
||||
m_ChatResponseTargetID = ClientID;
|
||||
Console()->SetFlagMask(CFGFLAG_CHAT);
|
||||
|
||||
int Authed = Server()->GetAuthedState(ClientID);
|
||||
if(Authed)
|
||||
Console()->SetAccessLevel(Authed == AUTHED_ADMIN ? IConsole::ACCESS_LEVEL_ADMIN : Authed == AUTHED_MOD ? IConsole::ACCESS_LEVEL_MOD : IConsole::ACCESS_LEVEL_HELPER);
|
||||
|
@ -1866,7 +1863,6 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
|
|||
|
||||
Console()->SetAccessLevel(IConsole::ACCESS_LEVEL_ADMIN);
|
||||
Console()->SetFlagMask(CFGFLAG_SERVER);
|
||||
m_ChatResponseTargetID = -1;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -462,9 +462,6 @@ public:
|
|||
virtual float PlayerJetpack();
|
||||
|
||||
void ResetTuning();
|
||||
|
||||
int m_ChatResponseTargetID;
|
||||
int m_ChatPrintCBIndex;
|
||||
};
|
||||
|
||||
inline int64_t CmaskAll() { return -1LL; }
|
||||
|
|
Loading…
Reference in a new issue