summaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-17 17:25:22 +0000
committersmatz <smatz@openttd.org>2008-06-17 17:25:22 +0000
commit4e2e07874345f45bd0c640f94c73dfe9dafa4956 (patch)
tree9b850fb11338018338cebc973ce92041435aaeb3 /src/sound.cpp
parent4bbe69f881725a0066e7b3333368c229c4fa2d94 (diff)
downloadopenttd-4e2e07874345f45bd0c640f94c73dfe9dafa4956.tar.xz
(svn r13551) -Codechange: store offsets to different zoom levels in a distinguished struct instead in the data stream for 8bpp-optimized
Diffstat (limited to 'src/sound.cpp')
-rw-r--r--src/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index e610c53a7..ab5872b12 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -167,7 +167,7 @@ static void StartSound(uint sound, int panning, uint volume)
static const byte _vol_factor_by_zoom[] = {255, 190, 134, 87};
-assert_compile(lengthof(_vol_factor_by_zoom) == ZOOM_LVL_END - ZOOM_LVL_BEGIN);
+assert_compile(lengthof(_vol_factor_by_zoom) == ZOOM_LVL_COUNT);
static const byte _sound_base_vol[] = {
128, 90, 128, 128, 128, 128, 128, 128,