mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #7366 from furo321/SoundsDetail
Remove "Detail" from sound layers.
This commit is contained in:
commit
92206044d1
|
@ -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())
|
||||
{
|
||||
|
|
|
@ -724,6 +724,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);
|
||||
|
|
Loading…
Reference in a new issue