diff options
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 19 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 3 | ||||
-rw-r--r-- | engines/dreamweb/monitor.cpp | 13 |
3 files changed, 9 insertions, 26 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 3c3abe9ca4..72f2feca0e 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -2044,25 +2044,6 @@ clearedlocations: es.byte(bx) = 0; } -void DreamGenContext::lookInInterface() { - STACK_CHECK; - al = 'I'; - ah = 'N'; - cl = 'T'; - ch = 'F'; - findSetObject(); - ah = 1; - checkInside(); - _cmp(cl, (114)); - if (flags.z()) - goto emptyinterface; - al = es.byte(bx+15); - _inc(al); - return; -emptyinterface: - al = 0; -} - void DreamGenContext::dirCom() { STACK_CHECK; cx = 30; diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index 98bab1bd0e..29cd6e39ab 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -473,7 +473,6 @@ public: void getPersonText(); void getObTextStart(); void checkObjectSize(); - void fillOpen(); void doSomeTalk(); void resetLocation(); void outOfOpen(); @@ -482,7 +481,6 @@ public: void startTalk(); void getAnyAd(); void reminders(); - void lookInInterface(); void inToInv(); void deleteExText(); void getFreeAd(); @@ -505,6 +503,7 @@ public: void rollEm(); void lookAtPlace(); void findAllOpen(); + void fillOpen(); void deleteExObject(); void getEitherAd(); void setPickup(); diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp index 30ba9b88e0..577d5701ee 100644 --- a/engines/dreamweb/monitor.cpp +++ b/engines/dreamweb/monitor.cpp @@ -403,15 +403,18 @@ void DreamGenContext::loadNews() { } void DreamGenContext::loadCart() { - lookInInterface(); + byte cartridgeId = 0; + uint16 objectIndex = findSetObject("INTF"); + if (checkInside(objectIndex, 1) != kNumexobjects) + cartridgeId = getSetAd(objectIndex)->name[0] + 1; - if (al == 0) + if (cartridgeId == 0) data.word(kTextfile3) = standardLoad("DREAMWEB.T20"); // monitor file 20 - else if (al == 1) + else if (cartridgeId == 1) data.word(kTextfile3) = standardLoad("DREAMWEB.T21"); // monitor file 21 - else if (al == 2) + else if (cartridgeId == 2) data.word(kTextfile3) = standardLoad("DREAMWEB.T22"); // monitor file 22 - else if (al == 3) + else if (cartridgeId == 3) data.word(kTextfile3) = standardLoad("DREAMWEB.T23"); // monitor file 23 else data.word(kTextfile3) = standardLoad("DREAMWEB.T24"); // monitor file 24 |