From b605f686310fdb328c777dc36f9233e9923bf5e5 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 15 May 2007 16:08:46 +0000 Subject: (svn r9846) -Codechange: introduced ZOOM_LVL_MIN and ZOOM_LVL_MAX for the obvious reasons -Codechange: introduced ZOOM_LVL_DETAIL to show/remove details -Codechange: changed << and >> operator with ZoomLevel to a simple wrapper (that in theory also allows zoom-in besides the current zoom-out) -Fix r9845: missed some int -> ZoomLevel --- src/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sound.cpp') diff --git a/src/sound.cpp b/src/sound.cpp index 5700125d0..2245e8c0e 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -152,7 +152,7 @@ static void StartSound(uint sound, int panning, uint volume) } -static const byte _vol_factor_by_zoom[] = {255, 190, 134}; +static const byte _vol_factor_by_zoom[ZOOM_LVL_END] = {255, 190, 134}; static const byte _sound_base_vol[] = { 128, 90, 128, 128, 128, 128, 128, 128, -- cgit v1.2.3-54-g00ecf