aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/sgt/vase.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-12 22:47:43 -0500
committerPaul Gilbert2016-11-12 22:47:43 -0500
commit931e3f312a626cc916f1717a59c05e9d1ac5b972 (patch)
treebcfda5660dfd3db1d72c962ee7e6a52f4c1042c8 /engines/titanic/game/sgt/vase.cpp
parent68132bd678f1191757ef817b02d3063b072ca496 (diff)
downloadscummvm-rg350-931e3f312a626cc916f1717a59c05e9d1ac5b972.tar.gz
scummvm-rg350-931e3f312a626cc916f1717a59c05e9d1ac5b972.tar.bz2
scummvm-rg350-931e3f312a626cc916f1717a59c05e9d1ac5b972.zip
TITANIC: Lots more SGT field renamings
Diffstat (limited to 'engines/titanic/game/sgt/vase.cpp')
-rw-r--r--engines/titanic/game/sgt/vase.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/titanic/game/sgt/vase.cpp b/engines/titanic/game/sgt/vase.cpp
index e978828274..f9ee292be2 100644
--- a/engines/titanic/game/sgt/vase.cpp
+++ b/engines/titanic/game/sgt/vase.cpp
@@ -41,8 +41,8 @@ void CVase::load(SimpleFile *file) {
}
bool CVase::TurnOn(CTurnOn *msg) {
- if (CSGTStateRoom::_statics->_v3 == "Closed") {
- CSGTStateRoom::_statics->_v3 = "Open";
+ if (CSGTStateRoom::_statics->_vase == "Closed") {
+ CSGTStateRoom::_statics->_vase = "Open";
setVisible(true);
_isClosed = false;
_startFrame = 1;
@@ -54,10 +54,10 @@ bool CVase::TurnOn(CTurnOn *msg) {
}
bool CVase::TurnOff(CTurnOff *msg) {
- if (CSGTStateRoom::_statics->_v3 == "Open"
- && CSGTStateRoom::_statics->_v1 != "RestingV"
- && CSGTStateRoom::_statics->_v1 != "RestingUV") {
- CSGTStateRoom::_statics->_v3 = "Closed";
+ if (CSGTStateRoom::_statics->_vase == "Open"
+ && CSGTStateRoom::_statics->_bedhead != "RestingV"
+ && CSGTStateRoom::_statics->_bedhead != "RestingUV") {
+ CSGTStateRoom::_statics->_vase = "Closed";
_isClosed = true;
_startFrame = 12;
_endFrame = 25;
@@ -68,7 +68,7 @@ bool CVase::TurnOff(CTurnOff *msg) {
}
bool CVase::MovieEndMsg(CMovieEndMsg *msg) {
- if (CSGTStateRoom::_statics->_v3 == "Closed")
+ if (CSGTStateRoom::_statics->_vase == "Closed")
setVisible(false);
return true;