1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-05 18:19:41 +00:00

Change "or/and" to "||/&&"

I added the code that included those ages ago, figured I should go in and change it to conform to the existing project formatting.
This commit is contained in:
nalal 2022-03-04 14:29:55 -07:00 committed by GitHub
parent a95099cd03
commit efd403b174
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -489,7 +489,7 @@ void signalHandler(int signum)
{
std::cout << "Interrupt signal (" << signum << ") received.\n";
//15 is SIGTERM(Normal OS stop call), 2 is SIGINT(Ctrl+C)
if(signum == 15 or signum == 2)
if(signum == 15 || signum == 2)
{
killLoop = true;
}
@ -507,7 +507,7 @@ int Networking::mainLoop()
sigIntHandler.sa_flags = 0;
#endif
while (running and !killLoop)
while (running && !killLoop)
{
#ifndef _WIN32
sigaction(SIGTERM, &sigIntHandler, NULL);