aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/sgt/chest_of_drawers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/game/sgt/chest_of_drawers.cpp')
-rw-r--r--engines/titanic/game/sgt/chest_of_drawers.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/titanic/game/sgt/chest_of_drawers.cpp b/engines/titanic/game/sgt/chest_of_drawers.cpp
index 153a358403..4f8b332c92 100644
--- a/engines/titanic/game/sgt/chest_of_drawers.cpp
+++ b/engines/titanic/game/sgt/chest_of_drawers.cpp
@@ -41,9 +41,9 @@ void CChestOfDrawers::load(SimpleFile *file) {
}
bool CChestOfDrawers::TurnOn(CTurnOn *msg) {
- if (_statics->_v6 == "Closed" && _statics->_v5 == "Open") {
+ if (_statics->_chestOfDrawers == "Closed" && _statics->_desk == "Open") {
_isClosed = false;
- _statics->_v6 = "Open";
+ _statics->_chestOfDrawers = "Open";
_startFrame = 1;
_endFrame = 14;
playSound("b#11.wav");
@@ -53,10 +53,10 @@ bool CChestOfDrawers::TurnOn(CTurnOn *msg) {
}
bool CChestOfDrawers::TurnOff(CTurnOff *msg) {
- if (_statics->_v6 == "Open" && _statics->_v5 == "Closed") {
+ if (_statics->_chestOfDrawers == "Open" && _statics->_desk == "Closed") {
CVisibleMsg visibleMsg;
visibleMsg.execute("Drawer");
- _statics->_v6 = "Closed";
+ _statics->_chestOfDrawers = "Closed";
_isClosed = true;
_startFrame = 14;
@@ -69,7 +69,7 @@ bool CChestOfDrawers::TurnOff(CTurnOff *msg) {
}
bool CChestOfDrawers::MovieEndMsg(CMovieEndMsg *msg) {
- if (_statics->_v6 == "Open") {
+ if (_statics->_chestOfDrawers == "Open") {
CVisibleMsg visibleMsg;
visibleMsg.execute("Drawer");
}