aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/ad/ad_item.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-09-28 23:42:16 +0200
committerEinar Johan Trøan Sømåen2012-09-28 23:43:43 +0200
commitb31d6212ffc35b987cfb7ee35a5ae3f75bf34a60 (patch)
tree8e94bdc735109f6adc5d39f62b34efe7e49f3ec3 /engines/wintermute/ad/ad_item.cpp
parentf6d7d05343375b05f5f487c0c9006fe2cdd7a387 (diff)
downloadscummvm-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.cpp4
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;