Mercurial > hg > openttd
diff src/openttd.cpp @ 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 | ec270c5719b1 |
children | 4f8ecdfccbd3 |
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 }