projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- added geometry option which allows SuperTux to run at any resolution
[supertux.git]
/
lib
/
audio
/
sound_manager.cpp
diff --git
a/lib/audio/sound_manager.cpp
b/lib/audio/sound_manager.cpp
index
0243f24
..
2144bba
100644
(file)
--- a/
lib/audio/sound_manager.cpp
+++ b/
lib/audio/sound_manager.cpp
@@
-72,7
+72,7
@@
SoundManager::play_sound(Mix_Chunk* sound, const Vector& pos, const Vector& pos2
// TODO make sure this formula is good
float distance
= pos2.x- pos.x;
- int loud = int(255.0/float(
screen->w
*2) * fabsf(distance));
+ int loud = int(255.0/float(
SCREEN_WIDTH
*2) * fabsf(distance));
if(loud > 255)
return;