From 18f389fb172a1cbd1b594d88cc412deb0e4b10a6 Mon Sep 17 00:00:00 2001 From: furo Date: Tue, 24 Oct 2023 19:34:09 +0200 Subject: [PATCH] Remove "Detail" from sound layers. --- src/game/client/components/mapsounds.cpp | 2 +- src/game/editor/popups.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/game/client/components/mapsounds.cpp b/src/game/client/components/mapsounds.cpp index caf8700b1..98269ce56 100644 --- a/src/game/client/components/mapsounds.cpp +++ b/src/game/client/components/mapsounds.cpp @@ -118,7 +118,7 @@ void CMapSounds::OnRender() Client()->IntraGameTick(g_Config.m_ClDummy)); } float Offset = s_Time - Source.m_pSource->m_TimeDelay; - if(!DemoPlayerPaused && Offset >= 0.0f && g_Config.m_SndEnable && (g_Config.m_GfxHighDetail || !Source.m_HighDetail)) + if(!DemoPlayerPaused && Offset >= 0.0f && g_Config.m_SndEnable) { if(Source.m_Voice.IsValid()) { diff --git a/src/game/editor/popups.cpp b/src/game/editor/popups.cpp index 9b3193bad..30a2eeb34 100644 --- a/src/game/editor/popups.cpp +++ b/src/game/editor/popups.cpp @@ -721,6 +721,12 @@ CUI::EPopupMenuFunctionResult CEditor::PopupLayer(void *pContext, CUIRect View, aProps[2].m_Type = PROPTYPE_NULL; } + // don't use Detail from the selection if this is a sound layer + if(pCurrentLayer->m_Type == LAYERTYPE_SOUNDS) + { + aProps[2].m_Type = PROPTYPE_NULL; + } + static int s_aIds[NUM_PROPS] = {0}; int NewVal = 0; int Prop = pEditor->DoProperties(&View, aProps, s_aIds, &NewVal);