From b29d1d452ff828038fb530fb2f641fcd650eb6a1 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Thu, 11 Sep 2014 14:19:18 +0200 Subject: [PATCH] removed some redundant checks --- apps/opencs/model/tools/bodypartcheck.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/opencs/model/tools/bodypartcheck.cpp b/apps/opencs/model/tools/bodypartcheck.cpp index da7fe7b57..fe3c16061 100644 --- a/apps/opencs/model/tools/bodypartcheck.cpp +++ b/apps/opencs/model/tools/bodypartcheck.cpp @@ -27,16 +27,13 @@ void CSMTools::BodyPartCheckStage::perform ( int stage, Messages &messages ) // Check BYDT - if ( bodyPart.mData.mPart < 0 || bodyPart.mData.mPart > 14 ) + if (bodyPart.mData.mPart > 14 ) messages.push_back(std::make_pair( id, bodyPart.mId + " has out of range part value." )); - if ( bodyPart.mData.mVampire < 0 ) - messages.push_back(std::make_pair( id, bodyPart.mId + " has negative vampire flag." )); - - if ( bodyPart.mData.mFlags < 0 || bodyPart.mData.mFlags > 3 ) + if (bodyPart.mData.mFlags > 3 ) messages.push_back(std::make_pair( id, bodyPart.mId + " has out of range flags value." )); - if ( bodyPart.mData.mType < 0 || bodyPart.mData.mType > 2 ) + if (bodyPart.mData.mType > 2 ) messages.push_back(std::make_pair( id, bodyPart.mId + " has out of range type value." )); // Check MODL