aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2011-05-06 22:43:53 +1000
committerPaul Gilbert2011-05-06 22:43:53 +1000
commit67975303e636470e963453d681a3e71896f57f91 (patch)
tree41513ed1f6cccd8c4e86b3549505928a6d37ece8
parent7b043baf91165ca612c5641867bd876209afea2c (diff)
downloadscummvm-rg350-67975303e636470e963453d681a3e71896f57f91.tar.gz
scummvm-rg350-67975303e636470e963453d681a3e71896f57f91.tar.bz2
scummvm-rg350-67975303e636470e963453d681a3e71896f57f91.zip
TSAGE: Bugfix for self-closing drawers in Scene #7700
-rw-r--r--engines/tsage/ringworld_scenes8.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/ringworld_scenes8.cpp b/engines/tsage/ringworld_scenes8.cpp
index 487aaeea53..fbed069b5d 100644
--- a/engines/tsage/ringworld_scenes8.cpp
+++ b/engines/tsage/ringworld_scenes8.cpp
@@ -1602,7 +1602,7 @@ void Scene7600::postInit(SceneObjectList *OwnerList) {
*--------------------------------------------------------------------------*/
void Scene7700::Action1::signal() {
- SceneObject *fmtObj = (SceneObject *) _endHandler;
+ SceneObjectExt *fmtObj = (SceneObjectExt *) _endHandler;
switch (_actionIndex++) {
case 0: {
PlayerMover *mover1 = new PlayerMover();
@@ -1612,7 +1612,7 @@ void Scene7700::Action1::signal() {
}
case 1:
_globals->_player.checkAngle(fmtObj);
- if (_globals->_player._field8C == 0)
+ if (fmtObj->_state == 0)
fmtObj->animate(ANIM_MODE_5, this);
else
fmtObj->animate(ANIM_MODE_6, this);