From 95ccdeeac0cee0e800b10a6141a6172886e3fa52 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Thu, 18 Jan 2007 14:08:56 +0000 Subject: [PATCH] (svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo) --- src/openttd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/openttd.cpp b/src/openttd.cpp index b29e92f2ea..33595d8851 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 }