Removed stats printout from con writer

This commit is contained in:
Jordan Cristiano 2015-07-13 23:26:12 -04:00
parent 0033d3aeba
commit 4e4186d49e

View File

@ -33,18 +33,11 @@ ConLogWriter::ConLogWriter(FILE* outputFp):
void ConLogWriter::StartWriting(demoheader_t& header) void ConLogWriter::StartWriting(demoheader_t& header)
{ {
//std::ostringstream ss;
//ss << "Playing demo from " << << ".\n";
//fputs(ss.str().c_str(), m_outputFp);
//std::clog << ss.str() << std::endl;
fflush(stdout);
setvbuf(stdout, NULL, _IOFBF, 1024*64);
} }
void ConLogWriter::EndWriting() void ConLogWriter::EndWriting()
{ {
fflush(m_outputFp); fflush(m_outputFp);
fflush(stdout);
} }
void ConLogWriter::StartCommandPacket(const CommandPacket& packet) void ConLogWriter::StartCommandPacket(const CommandPacket& packet)
@ -63,6 +56,5 @@ void ConLogWriter::WriteNetPacket(NetPacket& packet, SourceGameContext& context)
{ {
ss << "\n"; ss << "\n";
fputs(ss.str().c_str(), m_outputFp); fputs(ss.str().c_str(), m_outputFp);
fputs(ss.str().c_str(), stdout);
} }
} }