diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-14 23:39:56 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-14 23:39:56 +0000 |
commit | bb73e3aaa036fb4450e98c715e80a6e8d9f2714d (patch) | |
tree | 03935c7d2e309f2333f5ea56f119f5e2a4b6508b /src/client | |
parent | d10188594d789796fbc9f5c147aa999a2dc58725 (diff) |
thruster sound
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/input.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/input.cc b/src/client/input.cc index 6a62fa5..1b895b7 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -232,9 +232,14 @@ void action_press(std::string const &action) { /* -- thruster ------------------------------------ */ if (action.compare("+thrust") == 0) { + if (local_thrust < 1.0f) + audio::play("ui/thruster"); local_thrust += thruster_offset; + } else if (action.compare("-thrust") == 0) { + if (local_thrust > 0.0f) + audio::play("ui/thruster"); local_thrust -= 2.0f * thruster_offset; /* -- mouse control ------------------------------- */ |