mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 04:33:09 +00:00
GRIM: Initialize Chore::_fade in Chore constructor, instead in Chore::fade().
This commit is contained in:
parent
5d6f3ad2c0
commit
a19449d097
@ -1215,7 +1215,7 @@ void Costume::Component::removeChild(Component *child) {
|
||||
|
||||
// Should initialize the status variables so the chore can't play unexpectedly
|
||||
Costume::Chore::Chore() : _hasPlayed(false), _playing(false), _looping(false), _currTime(-1),
|
||||
_tracks(NULL), _fadeMode(None) {
|
||||
_tracks(NULL), _fadeMode(None), _fade(1.f) {
|
||||
}
|
||||
|
||||
Costume::Chore::~Chore() {
|
||||
@ -1364,7 +1364,6 @@ void Costume::Chore::update() {
|
||||
}
|
||||
|
||||
void Costume::Chore::fade(Costume::Chore::FadeMode mode, int msecs) {
|
||||
_fade = 1.0f;
|
||||
if (mode == FadeIn) {
|
||||
if (!_playing || _fadeMode == None) {
|
||||
_currTime = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user