diff options
Diffstat (limited to 'engines/dreamweb/dreamgen.cpp')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 424c4ab71e..356ebc8d36 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -73,75 +73,6 @@ void DreamGenContext::transferMap() { _add(data.word(kExframepos), cx); } -void DreamGenContext::pickupConts() { - STACK_CHECK; - al = ds.byte(si+7); - _cmp(al, 255); - if (flags.z()) - return /* (notopenable) */; - al = data.byte(kItemframe); - ah = data.byte(kObjecttype); - dl = data.byte(kExpos); - es = data.word(kFreedat); - bx = 0; - cx = 0; -pickupcontloop: - push(cx); - push(es); - push(bx); - push(dx); - push(ax); - _cmp(es.byte(bx+2), ah); - if (!flags.z()) - goto notinsidethis; - _cmp(es.byte(bx+3), al); - if (!flags.z()) - goto notinsidethis; - data.byte(kItemtotran) = cl; - transferConToEx(); -notinsidethis: - ax = pop(); - dx = pop(); - bx = pop(); - es = pop(); - cx = pop(); - _add(bx, 16); - _inc(cx); - _cmp(cx, 80); - if (!flags.z()) - goto pickupcontloop; -} - -void DreamGenContext::transferConToEx() { - STACK_CHECK; - push(es); - push(bx); - push(dx); - push(es); - push(bx); - getExPos(); - si = pop(); - ds = pop(); - push(di); - cx = 8; - _movsw(cx, true); - di = pop(); - dx = pop(); - al = data.byte(kReallocation); - es.byte(di) = al; - es.byte(di+11) = al; - al = data.byte(kItemtotran); - es.byte(di+1) = al; - es.byte(di+3) = dl; - es.byte(di+2) = 4; - transferMap(); - transferInv(); - transferText(); - si = pop(); - ds = pop(); - ds.byte(si+2) = 255; -} - void DreamGenContext::read() { STACK_CHECK; cx = 40; |