From 5e1b6cbc482e592f1bb193111be89887aeb69985 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Tue, 18 Oct 2016 08:58:15 -0500 Subject: [PATCH] clang: trailing else --- Engine/source/T3D/player.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Engine/source/T3D/player.cpp b/Engine/source/T3D/player.cpp index db6a2ca42..8cca7126d 100644 --- a/Engine/source/T3D/player.cpp +++ b/Engine/source/T3D/player.cpp @@ -3835,11 +3835,13 @@ void Player::updateActionThread() // Select an action animation sequence, this assumes that // this function is called once per tick. if(mActionAnimation.action != PlayerData::NullAnimation) + { if (mActionAnimation.forward) mActionAnimation.atEnd = mShapeInstance->getPos(mActionAnimation.thread) == 1; else mActionAnimation.atEnd = mShapeInstance->getPos(mActionAnimation.thread) == 0; - + } + // Only need to deal with triggers on the client if( isGhost() ) { @@ -4581,6 +4583,7 @@ void Player::updateAnimationTree(bool firstPerson) { S32 mode = 0; if (firstPerson) + { if (mActionAnimation.firstPerson) mode = 0; // TSShapeInstance::MaskNodeRotation; @@ -4588,7 +4591,7 @@ void Player::updateAnimationTree(bool firstPerson) // TSShapeInstance::MaskNodePosY; else mode = TSShapeInstance::MaskNodeAllButBlend; - + } for (U32 i = 0; i < PlayerData::NumSpineNodes; i++) if (mDataBlock->spineNode[i] != -1) mShapeInstance->setNodeAnimationState(mDataBlock->spineNode[i],mode);