diff options
author | johndoe123 | 2011-09-19 14:11:35 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:39:40 +0200 |
commit | fa695229bed037257099e6c082f7e50be1119882 (patch) | |
tree | 84ffe725995e50bec81ea1138bd82e21e5cc63e9 /engines/neverhood/module1700.cpp | |
parent | 10ff1590305eff85e97ad84f33a0397b54d1341d (diff) | |
download | scummvm-rg350-fa695229bed037257099e6c082f7e50be1119882.tar.gz scummvm-rg350-fa695229bed037257099e6c082f7e50be1119882.tar.bz2 scummvm-rg350-fa695229bed037257099e6c082f7e50be1119882.zip |
NEVERHOOD: Add Sprite::setVisible and use it instead of direct access to the surface member
Diffstat (limited to 'engines/neverhood/module1700.cpp')
-rw-r--r-- | engines/neverhood/module1700.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/neverhood/module1700.cpp b/engines/neverhood/module1700.cpp index 9188dab2b0..58fc83511c 100644 --- a/engines/neverhood/module1700.cpp +++ b/engines/neverhood/module1700.cpp @@ -144,7 +144,7 @@ Class606::Class606(NeverhoodEngine *vm, Scene *parentScene, int index, int surfa if (!getSubVar(0x02038314, _index) && !getSubVar(0x02720344, _index)) { SetMessageHandler(&Class606::handleMessage); } else { - _surface->setVisible(false); + setVisible(false); SetMessageHandler(NULL); } _deltaRect = _drawRect; @@ -164,7 +164,7 @@ uint32 Class606::handleMessage(int messageNum, const MessageParam ¶m, Entity break; case 0x4806: setSubVar(0x02038314, _index, 1); - _surface->setVisible(false); + setVisible(false); SetMessageHandler(NULL); break; } |