mirror of https://github.com/AxioDL/metaforce.git
CScriptCamera*Keyframe: Brace statements where applicable
Makes the code consistent.
This commit is contained in:
parent
d6ad152a97
commit
23b14232be
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue