diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-03-26 18:02:37 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-03-26 18:02:37 +0200 |
commit | 2f978ea5085678e98e391317cc50ac991cd726a8 (patch) | |
tree | b1bde0c95639934202ec3f2803f2def772b7b0eb /src/main.cpp | |
parent | 0a7f8a48a9161e16e1366d492655fd7df04f48a3 (diff) |
Ambient sounds.
Using Tremulous sounds (CC-BY-SA) as placeholders for wind.ogg and water.ogg.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index ea0092d..20110e5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -68,8 +68,10 @@ int main() window.clear(); render.begin_frame(now, dt); render.render(&game); + game.compute_ambience(&render); interface.render_to(&render); audio::clean_sounds(); + audio::update_ambience(!game.paused); render.end_frame(); } |