aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
diff options
context:
space:
mode:
authorFilippos Karapetis2017-11-19 20:43:55 +0200
committerFilippos Karapetis2017-11-19 20:50:12 +0200
commit33cb29d5587af609bb747d1cef68dfffc60c6127 (patch)
tree4df77122d9fd4294ca01535ba2d0d4fe90e58f32 /engines/drascula
parent617497d09454694c8601c044613e56c75b777062 (diff)
downloadscummvm-rg350-33cb29d5587af609bb747d1cef68dfffc60c6127.tar.gz
scummvm-rg350-33cb29d5587af609bb747d1cef68dfffc60c6127.tar.bz2
scummvm-rg350-33cb29d5587af609bb747d1cef68dfffc60c6127.zip
DRASCULA: Document several updateVisible() calls
Diffstat (limited to 'engines/drascula')
-rw-r--r--engines/drascula/animation.cpp2
-rw-r--r--engines/drascula/rooms.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/drascula/animation.cpp b/engines/drascula/animation.cpp
index c89e5ff738..d9ff90748b 100644
--- a/engines/drascula/animation.cpp
+++ b/engines/drascula/animation.cpp
@@ -1293,7 +1293,7 @@ void DrasculaEngine::animation_5_5(){
}
flags[6] = 1;
- updateVisible();
+ updateVisible(); // sets visible[1] to 1 and visible[2] to 0
pause(12);
loadPic(96, frontSurface);
diff --git a/engines/drascula/rooms.cpp b/engines/drascula/rooms.cpp
index f99f00c8e7..e1a0bdd766 100644
--- a/engines/drascula/rooms.cpp
+++ b/engines/drascula/rooms.cpp
@@ -618,7 +618,7 @@ bool DrasculaEngine::room_22(int fl) {
finishSound();
selectVerb(kVerbNone);
removeObject(22);
- updateVisible();
+ updateVisible(); // sets visible[2] to 0 and visible[1] to 1
trackProtagonist = 3;
talk(499);
talk(500);
@@ -825,7 +825,7 @@ bool DrasculaEngine::room_35(int fl) {
visible[1] = 0;
flags[15] = 1;
flags[17] = 1;
- updateVisible();
+ updateVisible(); // sets visible[1] to 0 and visible[3] to 1
} else if (pickedObject == kVerbPick && fl == 149) {
pickObject(13);
visible[3] = 0;
@@ -872,7 +872,7 @@ bool DrasculaEngine::room_53(int fl) {
} else if (pickedObject == 16 && fl == 121) {
flags[2] = 1;
selectVerb(kVerbNone);
- updateVisible();
+ updateVisible(); // sets visible[3] to 0
pickedObject = kVerbMove;
} else if (pickedObject == 16) {
// Wall plug in chapter 5
@@ -906,7 +906,7 @@ bool DrasculaEngine::room_54(int fl) {
pickObject(8);
flags[13] = 1;
talk_mus(10);
- updateVisible();
+ updateVisible(); // sets visible[3] to 0
} else if (pickedObject == 10 && fl == 119) {
pause(4);
talk(436);
@@ -922,7 +922,7 @@ bool DrasculaEngine::room_55(int fl) {
if (pickedObject == kVerbPick && fl == 122) {
pickObject(12);
flags[8] = 1;
- updateVisible();
+ updateVisible(); // sets visible[1] to 0
} else if (fl == 206) {
playSound(11);
animate("det.bin", 17);
@@ -947,7 +947,7 @@ bool DrasculaEngine::room_56(int fl) {
bool DrasculaEngine::room_58(int fl) {
if (pickedObject == kVerbMove && fl == 103) {
flags[8] = 1;
- updateVisible();
+ updateVisible(); // sets isDoor[1] to 1
} else {
hasAnswer = 0;
}