Skip to content

Commit

Permalink
Fix another missed spot in the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
practicingruby committed Apr 21, 2012
1 parent 32f25ec commit 776f346
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/blind/ui/game_presenter.rb
Expand Up @@ -23,11 +23,12 @@ def move(x,y)

def detect_danger_zone
if in_danger_zone
min = Blind::World::DANGER_ZONE_RANGE.min
max = Blind::World::DANGER_ZONE_RANGE.max
# FIXME: Remove these hard-coded values
min = 100
max = 120

sounds[:siren].volume =
((world.distance(world.center_position) - min) / max.to_f) * 100
((world.distance(world.center_point) - min) / max.to_f) * 100
else
sounds[:siren].volume = 0
end
Expand Down

0 comments on commit 776f346

Please sign in to comment.