changeset 5723:2fc1cb6d4885 draft

(svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo)
author Darkvater <Darkvater@openttd.org>
date Thu, 18 Jan 2007 14:08:56 +0000
parents c50a67e73d96
children 45efc994ce8f
files src/openttd.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -174,7 +174,13 @@
 
 	p = GetDriverList(p, lastof(buf));
 
+	/* ShowInfo put output to stderr, but version information should go
+	 * to stdout; this is the only exception */
+#if !defined(WIN32) && !defined(WIN64)
+	printf("%s\n", buf);
+#else
 	ShowInfo(buf);
+#endif
 }