aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/people.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-12 20:00:45 +0200
committerFilippos Karapetis2011-12-12 20:02:34 +0200
commit30b2c37e53852fba8ee73f692492f489b4d86e5a (patch)
treebf29afcaf519b1687d8c7b5a021a5096da30fa52 /engines/dreamweb/people.cpp
parentd1628feb761acc9f4607f64de3eb620fea53bcc9 (diff)
downloadscummvm-rg350-30b2c37e53852fba8ee73f692492f489b4d86e5a.tar.gz
scummvm-rg350-30b2c37e53852fba8ee73f692492f489b4d86e5a.tar.bz2
scummvm-rg350-30b2c37e53852fba8ee73f692492f489b4d86e5a.zip
DREAMWEB: Convert 'setuptimeduse', 'entrytexts' to C++ and move priestText() to DreamBase
Diffstat (limited to 'engines/dreamweb/people.cpp')
-rw-r--r--engines/dreamweb/people.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/engines/dreamweb/people.cpp b/engines/dreamweb/people.cpp
index 889a430a22..efb9a028b6 100644
--- a/engines/dreamweb/people.cpp
+++ b/engines/dreamweb/people.cpp
@@ -629,25 +629,16 @@ void DreamGenContext::priest(ReelRoutine &routine) {
if (checkSpeed(routine)) {
routine.incReelPointer();
- push(es);
- push(bx);
priestText(routine);
- bx = pop();
- es = pop();
}
}
-void DreamGenContext::priestText(ReelRoutine &routine) {
+void DreamBase::priestText(ReelRoutine &routine) {
uint16 reel = routine.reelPointer();
if (reel < 2 || reel >= 7 || (reel & 1))
return; // nopriesttext
- al = ((reel & 0xFF) >> 1) + 50;
- bl = 72;
- bh = 80;
- cx = 54;
- dx = 1;
- setupTimedUse();
+ setupTimedUse((reel >> 1) + 50, 54, 1, 72, 80);
}
void DreamGenContext::monkAndRyan(ReelRoutine &routine) {