CScriptCamera*Keyframe: Brace statements where applicable

Makes the code consistent.
This commit is contained in:
Lioncash 2020-05-07 07:54:16 -04:00
parent d6ad152a97
commit 23b14232be
2 changed files with 10 additions and 5 deletions

View File

@ -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;

View File

@ -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;