From 4c53365c16362156529c7669079e31845384589f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 7 Mar 2009 13:57:09 +0000 Subject: renamed Entity::eventstate() to Entity::state(), introduced Destroyed state --- src/client/soundext.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/soundext.cc') diff --git a/src/client/soundext.cc b/src/client/soundext.cc index 02613e1..dda3a98 100644 --- a/src/client/soundext.cc +++ b/src/client/soundext.cc @@ -100,7 +100,7 @@ void SoundExt::frame(float elapsed) float gain = 0.0; float r = ( entity->model() ? entity->model()->maxbbox().x : entity->radius()); - if (entity->eventstate() == core::Entity::Impulse) { + if (entity->state() == core::Entity::Impulse) { pitch = 1.0f; gain = 1.0f; } else if (entity->thrust() > 0 ) { @@ -108,7 +108,7 @@ void SoundExt::frame(float elapsed) gain = 0.8f; } - if (entity->eventstate() == core::Entity::ImpulseInitiate ) { + if (entity->state() == core::Entity::ImpulseInitiate ) { if (state_engineeventbuffer != state_impulsestartbuffer) { audio::update_source(state_engineeventsource, @@ -117,7 +117,7 @@ void SoundExt::frame(float elapsed) state_engineeventbuffer = audio::play(state_engineeventsource, state_impulsestartbuffer); } - } else if (entity->eventstate() == core::Entity::Impulse) { + } else if (entity->state() == core::Entity::Impulse) { state_engineeventbuffer = state_impulseloopbuffer; -- cgit v1.2.3