diff options
author | Stijn Buys <ingar@osirion.org> | 2012-12-26 16:53:55 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-12-26 16:53:55 +0000 |
commit | c074fdfefc6b0b7e243887f3a3783c7276d61bd7 (patch) | |
tree | 1016a62cba76f667307f3d118b0fcfb52e89c0c4 /src/client | |
parent | fc4938cdd5c1b37726a386fb866d3bf08a0fab45 (diff) |
Play a stationary engine sound if thrust is 0.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/soundext.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/soundext.cc b/src/client/soundext.cc index 7af0c4b..0fa8d54 100644 --- a/src/client/soundext.cc +++ b/src/client/soundext.cc @@ -209,12 +209,9 @@ void SoundExt::frame(float elapsed) if (entity->state() == core::Entity::Impulse) { pitch = 1.0f; gain = 1.0f; - } else if (entity->thrust() > 0) { + } else { pitch = 0.2f + entity->thrust() * 0.8f; gain = 1.0f; - if (entity->thrust() < 0.2f) { - gain *= entity->thrust() * 5.0f; - } } if (entity->state() == core::Entity::ImpulseInitiate) { |