Remove unused chat response variables

This commit is contained in:
heinrich5991 2022-05-01 11:17:45 +02:00
parent 3bed3be39c
commit 4061069b73
2 changed files with 0 additions and 7 deletions

View file

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

View file

@ -462,9 +462,6 @@ public:
virtual float PlayerJetpack();
void ResetTuning();
int m_ChatResponseTargetID;
int m_ChatPrintCBIndex;
};
inline int64_t CmaskAll() { return -1LL; }