aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-13 23:04:26 +0200
committerFilippos Karapetis2011-12-13 23:04:26 +0200
commit9042f85ef3da49893f0c595476abf4602c794fdf (patch)
tree0e60edbf6f0e3ea107018671b5837f48cb2c4c4b /engines/dreamweb
parent5eb592a1c92d6069529dc3a78b06a9d40d384ed7 (diff)
downloadscummvm-rg350-9042f85ef3da49893f0c595476abf4602c794fdf.tar.gz
scummvm-rg350-9042f85ef3da49893f0c595476abf4602c794fdf.tar.bz2
scummvm-rg350-9042f85ef3da49893f0c595476abf4602c794fdf.zip
DREAMWEB: Fix regression in bartender() and receptionist()
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/people.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/engines/dreamweb/people.cpp b/engines/dreamweb/people.cpp
index caaea26d0d..99e382f325 100644
--- a/engines/dreamweb/people.cpp
+++ b/engines/dreamweb/people.cpp
@@ -783,28 +783,28 @@ void DreamGenContext::receptionist(ReelRoutine &routine) {
// Set card
data.byte(kCardpassflag)++;
routine.b7 = 1;
- routine.b3 = 64;
+ routine.setReelPointer(64);
}
- if (routine.b3 != 58) {
+ if (routine.reelPointer() != 58) {
// notdes1
- if (routine.b3 != 60) {
+ if (routine.reelPointer() != 60) {
// notdes2
- if (routine.b3 != 88)
- routine.b3++; // not end card
+ if (routine.reelPointer() != 88)
+ routine.incReelPointer(); // not end card
else
- routine.b3 = 53;
+ routine.setReelPointer(53);
} else if (engine->randomNumber() >= 240) {
- routine.b3 = 53;
+ routine.setReelPointer(53);
}
} else if (engine->randomNumber() >= 30) {
- routine.b3 = 55;
+ routine.setReelPointer(55);
} else {
// notdes2
- if (routine.b3 != 88)
- routine.b3++; // not end card
+ if (routine.reelPointer() != 88)
+ routine.incReelPointer(); // not end card
else
- routine.b3 = 53;
+ routine.setReelPointer(53);
}
}
@@ -816,15 +816,15 @@ void DreamGenContext::receptionist(ReelRoutine &routine) {
void DreamGenContext::bartender(ReelRoutine &routine) {
if (checkSpeed(routine)) {
- if (routine.b3 == 86) {
+ if (routine.reelPointer() == 86) {
if (engine->randomNumber() >= 18)
- routine.b3 = 81;
+ routine.setReelPointer(81);
else
- routine.b3++; // notsmoket2
- } else if (routine.b3 == 103) {
- routine.b3 = 81; // notsmoket1
+ routine.incReelPointer(); // notsmoket2
+ } else if (routine.reelPointer() == 103) {
+ routine.setReelPointer(81); // notsmoket1
} else {
- routine.b3++; // notsmoket2
+ routine.incReelPointer(); // notsmoket2
}
}