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:
2
unix.c
2
unix.c
@@ -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;}
|
||||
|
Reference in New Issue
Block a user