From efd403b1741ce59b8813240e27aad6e706c3194e Mon Sep 17 00:00:00 2001 From: nalal Date: Fri, 4 Mar 2022 14:29:55 -0700 Subject: [PATCH] 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. --- apps/openmw-mp/Networking.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index d2b0c986c..1ff9cee3c 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -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);