(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

View File

@@ -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);
}
}