Fixed demo writer writing empty packets
This commit is contained in:
parent
4218c60eff
commit
b06015835c
@ -60,9 +60,12 @@ void DemoWriter::StartCommandPacket(CommandPacket& packet)
|
||||
}
|
||||
|
||||
void DemoWriter::EndCommandPacket()
|
||||
{
|
||||
if (m_cmdPacketBuf.GetNumBytesWritten() > 0)
|
||||
{
|
||||
m_writer.WriteRawData(m_cmdPacketBuf.GetBasePointer(), m_cmdPacketBuf.GetNumBytesWritten());
|
||||
}
|
||||
}
|
||||
|
||||
void DemoWriter::WriteNetPacket(NetPacket& packet, SourceGameContext& context)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user