summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-04 07:35:12 +0000
committertron <tron@openttd.org>2005-06-04 07:35:12 +0000
commit1273f21ff58b0746584b02c0608962ef5b677a7c (patch)
tree88285fef5e7b9d4fce88501d60b958183e8e1a9a /win32.c
parent793eba3a3a2fac64e0e4bd860d8c04d75061abd4 (diff)
downloadopenttd-1273f21ff58b0746584b02c0608962ef5b677a7c.tar.xz
(svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32.c b/win32.c
index 2b9e7c005..712dd54b4 100644
--- a/win32.c
+++ b/win32.c
@@ -2251,7 +2251,7 @@ bool CreateOTTDThread(void *func, void *param)
hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)func, param, 0, &dwThreadId);
SetThreadPriority(hThread, THREAD_PRIORITY_BELOW_NORMAL);
- return (hThread == NULL) ? false : true;
+ return hThread != NULL;
}
void CloseOTTDThread(void)
@@ -2264,4 +2264,4 @@ void JoinOTTDThread(void)
if (hThread == NULL) return;
WaitForSingleObject(hThread, INFINITE);
-} \ No newline at end of file
+}