diff options
author | Einar Johan Trøan Sømåen | 2013-02-06 12:45:46 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-02-06 13:40:35 +0100 |
commit | 74e32bd3329b8d7b19d97ddff140fb23b901c2d6 (patch) | |
tree | 0094aec3cdb326d528f81971d76cbf042ff8b908 /engines/wintermute/ad/ad_scene.cpp | |
parent | 83152fd6088f08c238a1d175cfadef847dd7eaac (diff) | |
download | scummvm-rg350-74e32bd3329b8d7b19d97ddff140fb23b901c2d6.tar.gz scummvm-rg350-74e32bd3329b8d7b19d97ddff140fb23b901c2d6.tar.bz2 scummvm-rg350-74e32bd3329b8d7b19d97ddff140fb23b901c2d6.zip |
WINTERMUTE: Privatize a few more members in BaseGame.
Diffstat (limited to 'engines/wintermute/ad/ad_scene.cpp')
-rw-r--r-- | engines/wintermute/ad/ad_scene.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/ad/ad_scene.cpp b/engines/wintermute/ad/ad_scene.cpp index f0e26e7e37..f305c2f60e 100644 --- a/engines/wintermute/ad/ad_scene.cpp +++ b/engines/wintermute/ad/ad_scene.cpp @@ -1138,8 +1138,8 @@ bool AdScene::updateFreeObjects() { } - if (_autoScroll && _gameRef->_mainObject != nullptr) { - scrollToObject(_gameRef->_mainObject); + if (_autoScroll && _gameRef->getMainObject() != nullptr) { + scrollToObject(_gameRef->getMainObject()); } @@ -1285,7 +1285,7 @@ void AdScene::scrollTo(int offsetX, int offsetY) { _targetOffsetTop = MIN(_targetOffsetTop, _height - viewportHeight); - if (_gameRef->_mainObject && _gameRef->_mainObject->_is3D) { + if (_gameRef->getMainObject() && _gameRef->getMainObject()->_is3D) { if (abs(origOffsetLeft - _targetOffsetLeft) < 5) { _targetOffsetLeft = origOffsetLeft; } |