mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 04:41:39 +00:00
options_menu: only play slider sound between min/max range
This commit is contained in:
parent
f4bae353a4
commit
eeb428d9de
1 changed files with 3 additions and 3 deletions
|
|
@ -655,10 +655,10 @@ static void DrawConfigOption(int32_t rowIndex, float yOffset, ConfigDef<T>* conf
|
|||
deltaTime -= INCREMENT_TIME;
|
||||
} while (fastIncrement && deltaTime > 0.0f);
|
||||
|
||||
config->Value = std::clamp(config->Value, valueMin, valueMax);
|
||||
|
||||
if (increment || decrement)
|
||||
if ((increment || decrement) && (config->Value >= valueMin && config->Value <= valueMax))
|
||||
PlaySound("sys_actstg_twn_speechbutton");
|
||||
|
||||
config->Value = std::clamp(config->Value, valueMin, valueMax);
|
||||
}
|
||||
|
||||
if (config->Callback)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue