Skip to content

Commit

Permalink
change volume step default to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
N6REJ committed May 15, 2023
1 parent 1c15c36 commit 0979bf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ BearsSwitcher.options = {
set = "SetVolumeSteps",
min = 1,
max = 100,
step = 5
step = 1
},
enableSound = {
type = "toggle",
Expand Down
4 changes: 2 additions & 2 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ end

-- VOLUME CONTROLS
local function AdjustMasterVolume(SOUND_MASTERVOLUME_STEP)
-- Set volume to 0-1 range instead of 0-100
-- Set volume to 1-100
SOUND_MASTERVOLUME_STEP = SOUND_MASTERVOLUME_STEP / 100

-- Get current volume level from 0 - 1
-- Get current volume level from 1 - 100
local volume = tonumber(GetCVar("Sound_MasterVolume"))

if (volume) then
Expand Down

0 comments on commit 0979bf4

Please sign in to comment.