summaryrefslogtreecommitdiff
path: root/Table.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Table.cpp')
-rw-r--r--Table.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Table.cpp b/Table.cpp
index 8449948..be35faa 100644
--- a/Table.cpp
+++ b/Table.cpp
@@ -17,8 +17,8 @@ void Table::update(const Cursor& cursor)
for (int i = 0; i < _depth; i++) {
LZR_StopSound(i);
if (_strength[i][t] > 0) {
- float pitch = float(_strength[i][t]) / CFG_DHEIGHT;
- float pan = float(_notes[i][t]) / CFG_DHEIGHT;
+ float pitch = float(_strength[i][t]) / _yend;
+ float pan = float(_notes[i][t]) / _yend;
LZR_SetSoundPitch(i, 0.5 + pitch * 1.5);
LZR_SetSoundPan(i, -1.0 + pan * 2.0);
LZR_PlaySound(i, 0);