From 156d3a997e865d7dd703a97f64c5c426091ffae5 Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Sat, 3 Dec 2011 20:10:15 +0100 Subject: DREAMWEB: 'enterSymbol' ported to C++ --- engines/dreamweb/dreamgen.cpp | 69 ------------------------------------------- 1 file changed, 69 deletions(-) (limited to 'engines/dreamweb/dreamgen.cpp') diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 7bd735f975..ce98b1aaf0 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -9077,75 +9077,6 @@ void DreamGenContext::dumpKeypad() { multiDump(); } -void DreamGenContext::enterSymbol() { - STACK_CHECK; - data.byte(kManisoffscreen) = 1; - getRidOfReels(); - dx = 2007; - loadIntoTemp(); - data.byte(kSymboltopx) = 24; - data.byte(kSymboltopdir) = 0; - data.byte(kSymbolbotx) = 24; - data.byte(kSymbolbotdir) = 0; - redrawMainScrn(); - showSymbol(); - underTextLine(); - workToScreenM(); - data.byte(kGetback) = 0; -symbolloop: - delPointer(); - updateSymbolTop(); - updateSymbolBot(); - showSymbol(); - readMouse(); - showPointer(); - vSync(); - dumpPointer(); - dumpTextLine(); - dumpSymbol(); - bx = offset_symbollist; - checkCoords(); - _cmp(data.byte(kGetback), 0); - if (flags.z()) - goto symbolloop; - _cmp(data.byte(kSymbolbotnum), 3); - if (!flags.z()) - goto symbolwrong; - _cmp(data.byte(kSymboltopnum), 5); - if (!flags.z()) - goto symbolwrong; - al = 43; - removeSetObject(); - al = 46; - placeSetObject(); - ah = data.byte(kRoomnum); - _add(ah, 12); - al = 0; - turnAnyPathOn(); - data.byte(kManisoffscreen) = 0; - redrawMainScrn(); - getRidOfTemp(); - restoreReels(); - workToScreenM(); - al = 13; - playChannel1(); - return; -symbolwrong: - al = 46; - removeSetObject(); - al = 43; - placeSetObject(); - ah = data.byte(kRoomnum); - _add(ah, 12); - al = 0; - turnAnyPathOff(); - data.byte(kManisoffscreen) = 0; - redrawMainScrn(); - getRidOfTemp(); - restoreReels(); - workToScreenM(); -} - void DreamGenContext::quitSymbol() { STACK_CHECK; _cmp(data.byte(kSymboltopx), 24); -- cgit v1.2.3