DREAMWEB: 'getreelframeax' ported to C++

This commit is contained in:
Bertrand Augereau 2011-08-11 23:10:30 +02:00
parent c8d8056777
commit 01ccadf7c1
5 changed files with 13 additions and 19 deletions

View file

@ -570,6 +570,16 @@ void DreamGenContext::showgamereel() {
es.word(bx+3) = data.word(kReelpointer);
}
void DreamGenContext::getreelframeax() {
push(ds);
data.word(kCurrentframe) = ax;
findsource();
es = ds;
ds = pop();
cx = (data.word(kCurrentframe) - data.word(kTakeoff)) * 2;
bx = (data.word(kCurrentframe) - data.word(kTakeoff)) * 6;
}
void DreamGenContext::showrain() {
ds = data.word(kMainsprites);
si = 6*58;