From cc7066ac86fc897c043fcd91ab23206a05f9709d Mon Sep 17 00:00:00 2001 From: Jordan Cristiano Date: Sun, 14 Jun 2015 17:21:56 -0400 Subject: [PATCH] Fixed demowriter not writing packet type before the packet --- demboyz/demowriter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/demboyz/demowriter.cpp b/demboyz/demowriter.cpp index 62f1233..d795db7 100644 --- a/demboyz/demowriter.cpp +++ b/demboyz/demowriter.cpp @@ -69,5 +69,6 @@ void DemoWriter::EndCommandPacket() void DemoWriter::WriteNetPacket(NetPacket& packet, SourceGameContext& context) { + m_cmdPacketBuf.WriteUBitLong(packet.type, NETMSG_TYPE_BITS); NetHandlers::NetMsg_BitWrite(packet.type, m_cmdPacketBuf, context, packet.data); }