about summary refs log tree commit diff
path: root/src/game/client/components/console.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-12-29 23:36:53 +0100
committeroy <Tom_Adams@web.de>2011-12-29 23:36:53 +0100
commitb44ee3d9755ff35a6df1358dcfe85ce681bbe081 (patch)
treea168de3012907094d550d22771b103c1f35b9fa8 /src/game/client/components/console.cpp
parent72d5ef329b1a0ec07f8fb6c5e23011b7e1a45b61 (diff)
downloadzcatch-b44ee3d9755ff35a6df1358dcfe85ce681bbe081.tar.gz
zcatch-b44ee3d9755ff35a6df1358dcfe85ce681bbe081.zip
reworked ban system
Diffstat (limited to 'src/game/client/components/console.cpp')
-rw-r--r--src/game/client/components/console.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp
index f2e9e65d..d16d56cd 100644
--- a/src/game/client/components/console.cpp
+++ b/src/game/client/components/console.cpp
@@ -612,16 +612,10 @@ void CGameConsole::Dump(int Type)
 	IOHANDLE io = Storage()->OpenFile(aFilename, IOFLAG_WRITE, IStorage::TYPE_SAVE);
 	if(io)
 	{
-		#if defined(CONF_FAMILY_WINDOWS)
-			static const char Newline[] = "\r\n";
-		#else
-			static const char Newline[] = "\n";
-		#endif
-
 		for(CInstance::CBacklogEntry *pEntry = pConsole->m_Backlog.First(); pEntry; pEntry = pConsole->m_Backlog.Next(pEntry))
 		{
 			io_write(io, pEntry->m_aText, str_length(pEntry->m_aText));
-			io_write(io, Newline, sizeof(Newline)-1);
+			io_write_newline(io);
 		}
 		io_close(io);
 	}