Skip to content

Commit

Permalink
DREAMWEB: A bit of cleaning in 'madman'
Browse files Browse the repository at this point in the history
  • Loading branch information
tramboi committed Dec 1, 2011
1 parent f539d8f commit e73e300
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions engines/dreamweb/sprite.cpp
Expand Up @@ -679,24 +679,18 @@ void DreamGenContext::madmantext() {
}

void DreamGenContext::madman() {
ReelRoutine *routine = (ReelRoutine *)es.ptr(bx, 0);
data.word(kWatchingtime) = 2;
checkspeed();
if (flags.z()) {
ax = es.word(bx+3);
ax = routine->reelPointer();
if (ax >= 364) {
data.byte(kMandead) = 2;
showgamereel();
showgamereel(routine);
return;
}
if (ax == 10) {
push(es);
push(bx);
push(ax);
dx = kIntrotextname;
loadtemptext();
ax = pop();
bx = pop();
es = pop();
loadtemptext("DREAMWEB.T82");
data.byte(kCombatcount) = (uint8)-1;
data.byte(kSpeechcount) = 0;
}
Expand Down Expand Up @@ -733,10 +727,10 @@ void DreamGenContext::madman() {
}
}
}
es.word(bx+3) = ax;
routine->setReelPointer(ax);
}
showgamereel();
es.byte(bx+1) = data.byte(kMapx);
showgamereel(routine);
routine->mapX = data.byte(kMapx);
madmode();
}

Expand Down

0 comments on commit e73e300

Please sign in to comment.