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