mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Only record when we're actually recording
This commit is contained in:
parent
71ba923133
commit
7b2578b517
|
@ -558,7 +558,7 @@ int CServer::SendMsgEx(CMsgPacker *pMsg, int Flags, int ClientID, bool System)
|
|||
Packet.m_Flags |= NETSENDFLAG_FLUSH;
|
||||
|
||||
// write message to demo recorder
|
||||
if(!(Flags&MSGFLAG_NORECORD))
|
||||
if(m_DemoRecorder.IsRecording() && !(Flags&MSGFLAG_NORECORD))
|
||||
m_DemoRecorder.RecordMessage(pMsg->Data(), pMsg->Size());
|
||||
|
||||
if(!(Flags&MSGFLAG_NOSEND))
|
||||
|
|
Loading…
Reference in a new issue