diff options
author | smatz <smatz@openttd.org> | 2008-09-11 13:58:59 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-11 13:58:59 +0000 |
commit | 9431bf1c2929e8e46251c468d862a3ce0dfd778f (patch) | |
tree | ee60eb46534d5a3e51207997276f58b21371bc3c /src | |
parent | 1b7de43e8081b39cf8bd9250b5f675917229dd4b (diff) | |
download | openttd-9431bf1c2929e8e46251c468d862a3ce0dfd778f.tar.xz |
(svn r14289) -Fix [FS#2286](r3720)(r1): sound effects an music volume should be in range 0-127, default value shouldn't be higher
(based on a patch by kakaopor)
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 93ef59c96..263f37404 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1130,8 +1130,8 @@ static int32 UpdateRconPassword(int32 p1) static const SettingDesc _music_settings[] = { SDT_VAR(MusicFileSettings, playlist, SLE_UINT8, S, 0, 0, 0, 5, 1, STR_NULL, NULL), - SDT_VAR(MusicFileSettings, music_vol, SLE_UINT8, S, 0, 128, 0, 100, 1, STR_NULL, NULL), - SDT_VAR(MusicFileSettings, effect_vol, SLE_UINT8, S, 0, 128, 0, 100, 1, STR_NULL, NULL), + SDT_VAR(MusicFileSettings, music_vol, SLE_UINT8, S, 0, 127, 0, 127, 1, STR_NULL, NULL), + SDT_VAR(MusicFileSettings, effect_vol, SLE_UINT8, S, 0, 127, 0, 127, 1, STR_NULL, NULL), SDT_LIST(MusicFileSettings, custom_1, SLE_UINT8, S, 0, NULL, STR_NULL, NULL), SDT_LIST(MusicFileSettings, custom_2, SLE_UINT8, S, 0, NULL, STR_NULL, NULL), SDT_BOOL(MusicFileSettings, playing, S, 0, true, STR_NULL, NULL), |