From 23b14232be0f961bb7f0261e7eb0f99db59108da Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 7 May 2020 07:54:16 -0400 Subject: [PATCH] CScriptCamera*Keyframe: Brace statements where applicable Makes the code consistent. --- Runtime/World/CScriptCameraBlurKeyframe.cpp | 6 ++++-- Runtime/World/CScriptCameraFilterKeyframe.cpp | 9 ++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Runtime/World/CScriptCameraBlurKeyframe.cpp b/Runtime/World/CScriptCameraBlurKeyframe.cpp index 0401b6014..51298cdff 100644 --- a/Runtime/World/CScriptCameraBlurKeyframe.cpp +++ b/Runtime/World/CScriptCameraBlurKeyframe.cpp @@ -20,12 +20,14 @@ void CScriptCameraBlurKeyframe::AcceptScriptMsg(EScriptObjectMessage msg, TUniqu switch (msg) { case EScriptObjectMessage::Increment: - if (GetActive()) + if (GetActive()) { stateMgr.GetCameraBlurPass(3).SetBlur(x34_type, x38_amount, x40_timeIn); + } break; case EScriptObjectMessage::Decrement: - if (GetActive()) + if (GetActive()) { stateMgr.GetCameraBlurPass(3).DisableBlur(x44_timeOut); + } break; default: break; diff --git a/Runtime/World/CScriptCameraFilterKeyframe.cpp b/Runtime/World/CScriptCameraFilterKeyframe.cpp index d2ba3541e..14aa52213 100644 --- a/Runtime/World/CScriptCameraFilterKeyframe.cpp +++ b/Runtime/World/CScriptCameraFilterKeyframe.cpp @@ -22,16 +22,19 @@ CScriptCameraFilterKeyframe::CScriptCameraFilterKeyframe(TUniqueId uid, std::str void CScriptCameraFilterKeyframe::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) { switch (msg) { case EScriptObjectMessage::Increment: - if (GetActive()) + if (GetActive()) { stateMgr.GetCameraFilterPass(x3c_filterIdx).SetFilter(x34_type, x38_shape, x48_timeIn, x44_color, x50_txtr); + } break; case EScriptObjectMessage::Decrement: - if (GetActive()) + if (GetActive()) { stateMgr.GetCameraFilterPass(x3c_filterIdx).DisableFilter(x4c_timeOut); + } break; case EScriptObjectMessage::Deactivate: - if (GetActive()) + if (GetActive()) { stateMgr.GetCameraFilterPass(x3c_filterIdx).DisableFilter(0.f); + } break; default: break;