summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2007-01-18 14:08:56 +0000
committerDarkvater <Darkvater@openttd.org>2007-01-18 14:08:56 +0000
commit3afe4b8a7cc831469462705502ba987b9d809236 (patch)
tree0b83101c42f2a4b91e8a4ac3fc6c1fc289cf4690 /src/openttd.cpp
parent4dd029a393987bd2fb1ebe16d5c3698e56ccb236 (diff)
downloadopenttd-3afe4b8a7cc831469462705502ba987b9d809236.tar.xz
(svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo)
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index b29e92f2e..33595d885 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -174,7 +174,13 @@ static void showhelp(void)
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
}