1
0
Fork 0

Jim Wilson:

Fix for the sound cranking bug.
This commit is contained in:
curt 2002-05-17 21:02:40 +00:00
parent 89483df079
commit 1ffd296e27

View file

@ -62,12 +62,12 @@ static const struct {
};
FGSound::FGSound()
: _condition(NULL),
: _sample(NULL),
_condition(NULL),
_property(NULL),
_sample(NULL),
_mode(FGSound::ONCE),
_prev_value(0),
_name("")
_name(""),
_mode(FGSound::ONCE)
{
}
@ -263,7 +263,7 @@ FGSound::update (double dt)
if ( // Lisp, anyone?
(_condition && !_condition->test()) ||
(_property &&
(_property && !_condition &&
(
!curr_value ||
( (_mode == FGSound::IN_TRANSIT) && (curr_value == _prev_value) )