* Fixed way too many \n in WorldLog output.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2009-03-21 18:35:59 +01:00
parent 1cae82a153
commit 28c03b77ad
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ void WorldLog::outLog(char const *fmt, ...)
va_list args; va_list args;
va_start(args, fmt); va_start(args, fmt);
vfprintf(i_file, fmt, args); vfprintf(i_file, fmt, args);
fprintf(i_file, "\n\n" ); fprintf(i_file, "\n" );
va_end(args); va_end(args);
fflush(i_file); fflush(i_file);
+3 -5
View File
@@ -182,10 +182,8 @@ int WorldSocket::SendPacket (const WorldPacket& pct)
for (uint32 j = 0; j < 16 && p < pct.size (); j++) for (uint32 j = 0; j < 16 && p < pct.size (); j++)
sWorldLog.outLog ("%.2X ", const_cast<WorldPacket&>(pct)[p++]); sWorldLog.outLog ("%.2X ", const_cast<WorldPacket&>(pct)[p++]);
sWorldLog.outLog ("\n"); sWorldLog.outLog ("");
} }
sWorldLog.outLog ("\n\n");
} }
ServerPktHeader header(pct.size()+2, pct.GetOpcode()); ServerPktHeader header(pct.size()+2, pct.GetOpcode());
@@ -692,9 +690,9 @@ int WorldSocket::ProcessIncoming (WorldPacket* new_pct)
{ {
for (uint32 j = 0; j < 16 && p < new_pct->size (); j++) for (uint32 j = 0; j < 16 && p < new_pct->size (); j++)
sWorldLog.outLog ("%.2X ", (*new_pct)[p++]); sWorldLog.outLog ("%.2X ", (*new_pct)[p++]);
sWorldLog.outLog ("\n");
sWorldLog.outLog ("");
} }
sWorldLog.outLog ("\n\n");
} }
// like one switch ;) // like one switch ;)