From 931e3f312a626cc916f1717a59c05e9d1ac5b972 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 12 Nov 2016 22:47:43 -0500 Subject: TITANIC: Lots more SGT field renamings --- engines/titanic/game/sgt/chest_of_drawers.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/titanic/game/sgt/chest_of_drawers.cpp') 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"); } -- cgit v1.2.3