aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/ad/ad_scene.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-02-06 12:45:46 +0100
committerEinar Johan Trøan Sømåen2013-02-06 13:40:35 +0100
commit74e32bd3329b8d7b19d97ddff140fb23b901c2d6 (patch)
tree0094aec3cdb326d528f81971d76cbf042ff8b908 /engines/wintermute/ad/ad_scene.cpp
parent83152fd6088f08c238a1d175cfadef847dd7eaac (diff)
downloadscummvm-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.cpp6
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;
}