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) {
|
switch (msg) {
|
||||||
case EScriptObjectMessage::Increment:
|
case EScriptObjectMessage::Increment:
|
||||||
if (GetActive())
|
if (GetActive()) {
|
||||||
stateMgr.GetCameraBlurPass(3).SetBlur(x34_type, x38_amount, x40_timeIn);
|
stateMgr.GetCameraBlurPass(3).SetBlur(x34_type, x38_amount, x40_timeIn);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case EScriptObjectMessage::Decrement:
|
case EScriptObjectMessage::Decrement:
|
||||||
if (GetActive())
|
if (GetActive()) {
|
||||||
stateMgr.GetCameraBlurPass(3).DisableBlur(x44_timeOut);
|
stateMgr.GetCameraBlurPass(3).DisableBlur(x44_timeOut);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -22,16 +22,19 @@ CScriptCameraFilterKeyframe::CScriptCameraFilterKeyframe(TUniqueId uid, std::str
|
||||||
void CScriptCameraFilterKeyframe::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) {
|
void CScriptCameraFilterKeyframe::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) {
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
case EScriptObjectMessage::Increment:
|
case EScriptObjectMessage::Increment:
|
||||||
if (GetActive())
|
if (GetActive()) {
|
||||||
stateMgr.GetCameraFilterPass(x3c_filterIdx).SetFilter(x34_type, x38_shape, x48_timeIn, x44_color, x50_txtr);
|
stateMgr.GetCameraFilterPass(x3c_filterIdx).SetFilter(x34_type, x38_shape, x48_timeIn, x44_color, x50_txtr);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case EScriptObjectMessage::Decrement:
|
case EScriptObjectMessage::Decrement:
|
||||||
if (GetActive())
|
if (GetActive()) {
|
||||||
stateMgr.GetCameraFilterPass(x3c_filterIdx).DisableFilter(x4c_timeOut);
|
stateMgr.GetCameraFilterPass(x3c_filterIdx).DisableFilter(x4c_timeOut);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case EScriptObjectMessage::Deactivate:
|
case EScriptObjectMessage::Deactivate:
|
||||||
if (GetActive())
|
if (GetActive()) {
|
||||||
stateMgr.GetCameraFilterPass(x3c_filterIdx).DisableFilter(0.f);
|
stateMgr.GetCameraFilterPass(x3c_filterIdx).DisableFilter(0.f);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue