Skip to content

Commit 518690f

Browse files
committed
optional frequency
1 parent 5e12c2a commit 518690f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaCameraDefs.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,9 @@ bool CLuaCameraDefs::SetCameraUnderwaterEffectEnabled(bool bEnabled) noexcept
506506
return true;
507507
}
508508

509-
bool CLuaCameraDefs::SetCameraUnderwaterEffectSpeed(float fSpeed, float fFrequency)
509+
bool CLuaCameraDefs::SetCameraUnderwaterEffectSpeed(float fSpeed, std::optional<float> fFrequency)
510510
{
511-
g_pMultiplayer->SetUnderwaterEffectSpeed(fSpeed, fFrequency);
511+
g_pMultiplayer->SetUnderwaterEffectSpeed(fSpeed, fFrequency.value_or(0.04f));
512512

513513
return true;
514514
}
@@ -634,4 +634,4 @@ bool CLuaCameraDefs::ResetShakeCamera() noexcept
634634
{
635635
m_pManager->GetCamera()->ResetShakeCamera();
636636
return true;
637-
}
637+
}

0 commit comments

Comments
 (0)