From c45ce5cc4e54bdae2fd45a130d8957ec55b51b1b Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Fri, 9 Dec 2011 14:12:12 +0000 Subject: A few fixes recommended by PVS Studio --- Stars45/RadioHandler.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Stars45/RadioHandler.cpp') diff --git a/Stars45/RadioHandler.cpp b/Stars45/RadioHandler.cpp index e56c850..d6397fc 100644 --- a/Stars45/RadioHandler.cpp +++ b/Stars45/RadioHandler.cpp @@ -71,10 +71,7 @@ RadioHandler::ProcessMessage(RadioMessage* msg, Ship* s) if (msg->Action() == RadioMessage::SKIP_NAVPOINT && !respond) ProcessMessageAction(msg, s); - if (ProcessMessageOrders(msg, s)) - respond = respond && true; - - else + if (!ProcessMessageOrders(msg, s)) respond = respond && ProcessMessageAction(msg, s); return respond; -- cgit v1.1