diff --git a/.clang-format b/.clang-format index 3201b87..d227918 100644 --- a/.clang-format +++ b/.clang-format @@ -6,9 +6,11 @@ AccessModifierOffset: -4 AlignAfterOpenBracket: DontAlign AllowShortBlocksOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: true AllowShortFunctionsOnASingleLine: All BasedOnStyle: LLVM BraceWrapping: + BeforeLambdaBody: true AfterCaseLabel: true AfterClass: true AfterControlStatement: true diff --git a/dlls/soundent.cpp b/dlls/soundent.cpp index 0ca277f..654b519 100644 --- a/dlls/soundent.cpp +++ b/dlls/soundent.cpp @@ -270,13 +270,12 @@ void CSoundEnt::Initialize() //========================================================= int CSoundEnt::ISoundsInList(int iListType) { - int iThisSound = [=]() { + int iThisSound = [=]() + { switch (iListType) { - case SOUNDLISTTYPE_FREE: - return m_iFreeSound; - case SOUNDLISTTYPE_ACTIVE: - return m_iActiveSound; + case SOUNDLISTTYPE_FREE: return m_iFreeSound; + case SOUNDLISTTYPE_ACTIVE: return m_iActiveSound; default: ALERT(at_console, "Unknown Sound List Type!\n"); return SOUNDLIST_EMPTY;