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/soundext.cc')
-rw-r--r--src/client/soundext.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/soundext.cc b/src/client/soundext.cc
index d05d20e..117c62d 100644
--- a/src/client/soundext.cc
+++ b/src/client/soundext.cc
@@ -227,7 +227,7 @@ void SoundExt::frame(float elapsed)
pitch = 1.0f;
} else {
- if (state_engineeventbuffer == state_impulseloopbuffer) {
+ if ((state_engineeventbuffer == state_impulsestartbuffer) || (state_engineeventbuffer == state_impulseloopbuffer)) {
audio::update_source(state_engineeventsource,
entity->location() - entity->axis().forward() * r ,
entity->axis().forward() * speed);