diff options
author | Einar Johan Trøan Sømåen | 2012-09-28 23:42:16 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-09-28 23:43:43 +0200 |
commit | b31d6212ffc35b987cfb7ee35a5ae3f75bf34a60 (patch) | |
tree | 8e94bdc735109f6adc5d39f62b34efe7e49f3ec3 /engines/wintermute/ad/ad_item.cpp | |
parent | f6d7d05343375b05f5f487c0c9006fe2cdd7a387 (diff) | |
download | scummvm-rg350-b31d6212ffc35b987cfb7ee35a5ae3f75bf34a60.tar.gz scummvm-rg350-b31d6212ffc35b987cfb7ee35a5ae3f75bf34a60.tar.bz2 scummvm-rg350-b31d6212ffc35b987cfb7ee35a5ae3f75bf34a60.zip |
WINTERMUTE: Privatize variables in BaseFrame and BaseSprite
Diffstat (limited to 'engines/wintermute/ad/ad_item.cpp')
-rw-r--r-- | engines/wintermute/ad/ad_item.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/ad/ad_item.cpp b/engines/wintermute/ad/ad_item.cpp index bad7223788..55ccca8d0a 100644 --- a/engines/wintermute/ad/ad_item.cpp +++ b/engines/wintermute/ad/ad_item.cpp @@ -340,7 +340,7 @@ bool AdItem::update() { } // finished playing animation? - if (_state == STATE_PLAYING_ANIM && _animSprite != NULL && _animSprite->_finished) { + if (_state == STATE_PLAYING_ANIM && _animSprite != NULL && _animSprite->isFinished()) { _state = STATE_READY; _currentSprite = _animSprite; } @@ -379,7 +379,7 @@ bool AdItem::update() { } bool timeIsUp = (_sentence->_sound && _sentence->_soundStarted && (!_sentence->_sound->isPlaying() && !_sentence->_sound->isPaused())) || (!_sentence->_sound && _sentence->_duration <= _gameRef->_timer - _sentence->_startTime); - if (_tempSprite2 == NULL || _tempSprite2->_finished || (/*_tempSprite2->_looping &&*/ timeIsUp)) { + if (_tempSprite2 == NULL || _tempSprite2->isFinished() || (/*_tempSprite2->_looping &&*/ timeIsUp)) { if (timeIsUp) { _sentence->finish(); _tempSprite2 = NULL; |