aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Augereau2011-11-26 12:29:09 +0100
committerBertrand Augereau2011-11-26 12:29:09 +0100
commit21d787d065468596ff854128407956bf9bf4ff37 (patch)
tree831d6cf35761a7d4b9ce028669ef34133398e45d
parent61bac6ed157e364fd4976762f79c1e7bde0b115c (diff)
downloadscummvm-rg350-21d787d065468596ff854128407956bf9bf4ff37.tar.gz
scummvm-rg350-21d787d065468596ff854128407956bf9bf4ff37.tar.bz2
scummvm-rg350-21d787d065468596ff854128407956bf9bf4ff37.zip
DREAMWEB: Ceaning in 'startloading'
-rw-r--r--engines/dreamweb/structs.h4
-rw-r--r--engines/dreamweb/stubs.cpp14
2 files changed, 7 insertions, 11 deletions
diff --git a/engines/dreamweb/structs.h b/engines/dreamweb/structs.h
index 5b73118a31..8b0030158d 100644
--- a/engines/dreamweb/structs.h
+++ b/engines/dreamweb/structs.h
@@ -196,7 +196,7 @@ struct Room {
uint8 b19;
uint8 liftFlag;
uint8 b21;
- uint8 b22;
+ uint8 facing;
uint8 countToOpen;
uint8 liftPath;
uint8 doorPath;
@@ -205,7 +205,7 @@ struct Room {
uint8 b28;
uint8 b29;
uint8 b30;
- uint8 b31;
+ uint8 realLocation;
};
struct Rain {
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index db71579de5..028b5fcf94 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -891,17 +891,14 @@ void DreamGenContext::startloading(const Room *room) {
data.byte(kManspath) = room->b21;
data.byte(kDestination) = room->b21;
data.byte(kFinaldest) = room->b21;
- data.byte(kFacing) = room->b22;
- data.byte(kTurntoface) = room->b22;
+ data.byte(kFacing) = room->facing;
+ data.byte(kTurntoface) = room->facing;
data.byte(kCounttoopen) = room->countToOpen;
data.byte(kLiftpath) = room->liftPath;
data.byte(kDoorpath) = room->doorPath;
data.byte(kLastweapon) = (uint8)-1;
- al = room->b27;
- push(ax);
- al = room->b31;
ah = data.byte(kReallocation);
- data.byte(kReallocation) = al;
+ data.byte(kReallocation) = room->realLocation;
Common::String name = room->name;
engine->openFile(name);
cs.word(kHandle) = 1; //only one handle
@@ -998,9 +995,8 @@ void DreamGenContext::startloading(const Room *room) {
data.word(kLookcounter) = 160;
data.byte(kNewlocation) = 255;
data.byte(kLinepointer) = 254;
- ax = pop();
- if (al != 255) {
- data.byte(kManspath) = al;
+ if (room->b27 != 255) {
+ data.byte(kManspath) = room->b27;
push(bx);
autosetwalk();
bx = pop();