diff options
author | truelight <truelight@openttd.org> | 2007-05-19 23:52:04 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-05-19 23:52:04 +0000 |
commit | 49aa3bedfb1dced207281249da635d28d5f310a3 (patch) | |
tree | d468c2b79a9bef97f027aeadc327e65c7fc0ed6e /src/sound.cpp | |
parent | 6954045bb4872b15677562e73d0e028c640ac8a7 (diff) | |
download | openttd-49aa3bedfb1dced207281249da635d28d5f310a3.tar.xz |
(svn r9885) -Fix r9846: some last bitshifts with zoom-levels that were forgotten
-Fix r9846: initialize the zoom level for 'screen', as assuming 0 is not correct
Diffstat (limited to 'src/sound.cpp')
-rw-r--r-- | src/sound.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sound.cpp b/src/sound.cpp index 2245e8c0e..fdc6c8451 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -152,7 +152,8 @@ static void StartSound(uint sound, int panning, uint volume) } -static const byte _vol_factor_by_zoom[ZOOM_LVL_END] = {255, 190, 134}; +static const byte _vol_factor_by_zoom[] = {255, 190, 134, 87, 49}; +assert_compile(lengthof(_vol_factor_by_zoom) == ZOOM_LVL_END); static const byte _sound_base_vol[] = { 128, 90, 128, 128, 128, 128, 128, 128, |