Fixed net_nop causing empty lines in output
This commit is contained in:
parent
063c2f515c
commit
2e8c0a742f
@ -58,7 +58,10 @@ void ConLogWriter::WriteNetPacket(NetPacket& packet)
|
|||||||
{
|
{
|
||||||
std::ostringstream ss;
|
std::ostringstream ss;
|
||||||
NetHandlers::NetMsg_ToString(packet.type, ss, packet.data);
|
NetHandlers::NetMsg_ToString(packet.type, ss, packet.data);
|
||||||
|
if (ss.tellp() > 0)
|
||||||
|
{
|
||||||
ss << "\n";
|
ss << "\n";
|
||||||
fputs(ss.str().c_str(), m_outputFp);
|
fputs(ss.str().c_str(), m_outputFp);
|
||||||
std::clog << ss.str();
|
std::clog << ss.str();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user