summaryrefslogtreecommitdiff
path: root/src/unix.cpp
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2009-08-20 10:34:19 +0000
committermatthijs <matthijs@openttd.org>2009-08-20 10:34:19 +0000
commit0960f15c7ed46ac71881456ed71dfcd0a33ae4bb (patch)
treefe471767ea58eb17f6b8b4dffebb8c23afaf0eae /src/unix.cpp
parent7fb95e2c2b2f84ecf9b5d5d2f02b147d1ad7cb3d (diff)
downloadopenttd-0960f15c7ed46ac71881456ed71dfcd0a33ae4bb.tar.xz
(svn r17229) -Codechange: Coding style fixes.
Diffstat (limited to 'src/unix.cpp')
-rw-r--r--src/unix.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/unix.cpp b/src/unix.cpp
index ec4bb05ff..29d8ad388 100644
--- a/src/unix.cpp
+++ b/src/unix.cpp
@@ -221,11 +221,12 @@ void ShowOSErrorBox(const char *buf, bool system)
* this is the native and nicest way to do this on OSX */
ShowMacDialog( buf, "See readme for more info\nMost likely you are missing files from the original TTD", "Quit" );
#else
- /* all systems, but OSX */
- if (isatty(fileno(stderr))) /* Only use escape codes on a TTY */
+ /* All unix systems, except OSX. Only use escape codes on a TTY. */
+ if (isatty(fileno(stderr))) {
fprintf(stderr, "\033[1;31mError: %s\033[0;39m\n", buf);
- else
+ } else {
fprintf(stderr, "Error: %s\n", buf);
+ }
#endif
}