(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
This commit is contained in:
truelight
2007-05-19 23:52:04 +00:00
parent d2c750b2c9
commit ecb8585bd4
4 changed files with 15 additions and 12 deletions

View File

@@ -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,