diff options
Diffstat (limited to 'src/core/clientstate.cc')
-rw-r--r-- | src/core/clientstate.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/core/clientstate.cc b/src/core/clientstate.cc index 84e1fe0..298e653 100644 --- a/src/core/clientstate.cc +++ b/src/core/clientstate.cc @@ -65,10 +65,22 @@ void ClientState::clearsound() { if (state_engineloopsource) { application()->notify_remove_sound(state_engineloopsource); + } + + if (state_engineeventsource) { application()->notify_remove_sound(state_engineeventsource); - state_engineloopsource = 0; - state_engineloopbuffer = 0; } + + state_thusterloopbuffer = 0; + state_impulseloopbuffer = 0; + state_impulsestartbuffer = 0; + state_impulsestopbuffer = 0; + + state_engineloopbuffer = 0; + state_engineloopsource = 0; + + state_engineeventbuffer = 0; + state_engineeventsource = 0; } void ClientState::assign(Entity * entity) |