(svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo)
authorDarkvater
Thu, 18 Jan 2007 14:08:56 +0000
changeset 5974 7de3ff0166f8
parent 5973 1a4cc06c6c64
child 5975 9c8308a17804
(svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo)
src/openttd.cpp
--- a/src/openttd.cpp	Thu Jan 18 14:06:30 2007 +0000
+++ b/src/openttd.cpp	Thu Jan 18 14:08:56 2007 +0000
@@ -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
 }