Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-14 23:39:56 +0000
committerStijn Buys <ingar@osirion.org>2008-07-14 23:39:56 +0000
commitbb73e3aaa036fb4450e98c715e80a6e8d9f2714d (patch)
tree03935c7d2e309f2333f5ea56f119f5e2a4b6508b /src/client/input.cc
parentd10188594d789796fbc9f5c147aa999a2dc58725 (diff)
thruster sound
Diffstat (limited to 'src/client/input.cc')
-rw-r--r--src/client/input.cc5
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 ------------------------------- */