From 7b2578b517df0c388f3caff4e0b3266187dec5c7 Mon Sep 17 00:00:00 2001 From: def Date: Sun, 4 Aug 2013 04:24:21 +0200 Subject: [PATCH] Only record when we're actually recording --- src/engine/server/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index bd6741245..495878988 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -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))