Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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 ------------------------------- */