aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authorBertrand Augereau2011-07-30 15:12:50 +0200
committerBertrand Augereau2011-07-30 15:12:50 +0200
commit1f0eccb296b0177775dd3cba2fc58961b743e819 (patch)
tree6a8daa62c7a7575c041628675fa0397b8dae8935 /engines/dreamweb
parentb2748740dbf5c9a8d7b648428d005e102ae41d7e (diff)
downloadscummvm-rg350-1f0eccb296b0177775dd3cba2fc58961b743e819.tar.gz
scummvm-rg350-1f0eccb296b0177775dd3cba2fc58961b743e819.tar.bz2
scummvm-rg350-1f0eccb296b0177775dd3cba2fc58961b743e819.zip
DREAMWEB: 'aboutturn' does not need to be generated now
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/dreamgen.cpp40
-rw-r--r--engines/dreamweb/dreamgen.h3
2 files changed, 1 insertions, 42 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index ed9481fb13..5b0ed0975b 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -2258,45 +2258,6 @@ over1001:
data.word(kTakeoff) = 320;
}
-void DreamGenContext::aboutturn() {
- STACK_CHECK;
- _cmp(data.byte(kTurndirection), 1);
- if (flags.z())
- goto incdir;
- _cmp(data.byte(kTurndirection), -1);
- if (flags.z())
- goto decdir;
- al = data.byte(kFacing);
- _sub(al, data.byte(kTurntoface));
- if (!flags.c())
- goto higher;
- _neg(al);
- _cmp(al, 4);
- if (!flags.c())
- goto decdir;
- goto incdir;
-higher:
- _cmp(al, 4);
- if (!flags.c())
- goto incdir;
- goto decdir;
-incdir:
- data.byte(kTurndirection) = 1;
- al = data.byte(kFacing);
- _inc(al);
- _and(al, 7);
- data.byte(kFacing) = al;
- es.byte(bx+29) = 0;
- return;
-decdir:
- data.byte(kTurndirection) = -1;
- al = data.byte(kFacing);
- _dec(al);
- _and(al, 7);
- data.byte(kFacing) = al;
- es.byte(bx+29) = 0;
-}
-
void DreamGenContext::checkforexit() {
STACK_CHECK;
cl = data.byte(kRyanx);
@@ -20560,7 +20521,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
case addr_checkone: checkone(); break;
case addr_findsource: findsource(); break;
case addr_mainman: mainman(); break;
- case addr_aboutturn: aboutturn(); break;
case addr_checkforexit: checkforexit(); break;
case addr_adjustdown: adjustdown(); break;
case addr_adjustup: adjustup(); break;
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index 2b7149621b..400e5a6898 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -672,7 +672,6 @@ public:
static const uint16 addr_adjustup = 0xc150;
static const uint16 addr_adjustdown = 0xc14c;
static const uint16 addr_checkforexit = 0xc148;
- static const uint16 addr_aboutturn = 0xc13c;
static const uint16 addr_mainman = 0xc138;
static const uint16 addr_findsource = 0xc130;
static const uint16 addr_checkone = 0xc12c;
@@ -1470,7 +1469,7 @@ public:
void loadold();
void loadtempcharset();
void useslab();
- void aboutturn();
+ //void aboutturn();
void usealtar();
void createpanel2();
void turnonpower();