aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/sgt/deskchair.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/game/sgt/deskchair.cpp')
-rw-r--r--engines/titanic/game/sgt/deskchair.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/titanic/game/sgt/deskchair.cpp b/engines/titanic/game/sgt/deskchair.cpp
index 800c3556fd..2b25f57d03 100644
--- a/engines/titanic/game/sgt/deskchair.cpp
+++ b/engines/titanic/game/sgt/deskchair.cpp
@@ -42,9 +42,9 @@ void CDeskchair::load(SimpleFile *file) {
}
bool CDeskchair::TurnOn(CTurnOn *msg) {
- if (_statics->_v8 == "Closed" && _statics->_v9 == "Closed") {
+ if (_statics->_armchair == "Closed" && _statics->_deskchair == "Closed") {
setVisible(true);
- _statics->_v9 = "Open";
+ _statics->_deskchair = "Open";
_isClosed = false;
_startFrame = 0;
_endFrame = 16;
@@ -56,8 +56,8 @@ bool CDeskchair::TurnOn(CTurnOn *msg) {
}
bool CDeskchair::TurnOff(CTurnOff *msg) {
- if (_statics->_v9 == "Open") {
- _statics->_v9 = "Closed";
+ if (_statics->_deskchair == "Open") {
+ _statics->_deskchair = "Closed";
_isClosed = true;
_startFrame = 16;
_endFrame = 32;
@@ -71,7 +71,7 @@ bool CDeskchair::TurnOff(CTurnOff *msg) {
bool CDeskchair::ActMsg(CActMsg *msg) {
if (msg->_action == "Smash") {
setVisible(false);
- _statics->_v9 = "Closed";
+ _statics->_deskchair = "Closed";
_isClosed = true;
loadFrame(0);
return true;
@@ -81,7 +81,7 @@ bool CDeskchair::ActMsg(CActMsg *msg) {
}
bool CDeskchair::MovieEndMsg(CMovieEndMsg *msg) {
- if (_statics->_v9 == "Closed")
+ if (_statics->_deskchair == "Closed")
setVisible(false);
return true;
}