From bb73e3aaa036fb4450e98c715e80a6e8d9f2714d Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 14 Jul 2008 23:39:56 +0000 Subject: thruster sound --- src/client/input.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client') 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 ------------------------------- */ -- cgit v1.2.3