diff options
Diffstat (limited to 'engines/titanic/game/sgt/drawer.cpp')
-rw-r--r-- | engines/titanic/game/sgt/drawer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/titanic/game/sgt/drawer.cpp b/engines/titanic/game/sgt/drawer.cpp index 3ce92a811e..68752b3d2f 100644 --- a/engines/titanic/game/sgt/drawer.cpp +++ b/engines/titanic/game/sgt/drawer.cpp @@ -46,13 +46,13 @@ void CDrawer::load(SimpleFile *file) { } bool CDrawer::TurnOn(CTurnOn *msg) { - if (_statics->_v7 == "Closed" && _statics->_v6 == "Open") { - _statics->_v7 = "Open"; + if (_statics->_drawer == "Closed" && _statics->_chestOfDrawers == "Open") { + _statics->_drawer = "Open"; _isClosed = false; _startFrame = 50; _endFrame = 75; setVisible(true); - _statics->_v7 = "Open"; + _statics->_drawer = "Open"; playMovie(_startFrame, _endFrame, MOVIE_NOTIFY_OBJECT | MOVIE_GAMESTATE); playSound("b#10.wav"); } @@ -61,8 +61,8 @@ bool CDrawer::TurnOn(CTurnOn *msg) { } bool CDrawer::TurnOff(CTurnOff *msg) { - if (_statics->_v7 == "Open") { - _statics->_v7 = "Closed"; + if (_statics->_drawer == "Open") { + _statics->_drawer = "Closed"; _startFrame = 75; _endFrame = 100; _isClosed = true; @@ -74,7 +74,7 @@ bool CDrawer::TurnOff(CTurnOff *msg) { } bool CDrawer::MovieEndMsg(CMovieEndMsg *msg) { - if (_statics->_v7 == "Closed") + if (_statics->_drawer == "Closed") setVisible(false); return true; |