1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 11:29:10 +00:00

(svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing

This commit is contained in:
tron
2005-06-04 07:35:12 +00:00
parent 7f0caaa89a
commit 43f7974f6d
5 changed files with 8 additions and 8 deletions

2
unix.c
View File

@@ -559,7 +559,7 @@ bool InsertTextBufferClipboard(Textbuf *tb)
static pthread_t thread1 = 0;
bool CreateOTTDThread(void *func, void *param)
{
return (pthread_create(&thread1, NULL, func, param) == 0) ? true : false;
return pthread_create(&thread1, NULL, func, param) == 0;
}
void CloseOTTDThread(void) {return;}