mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
DREAMWEB: 'getbackfromob' ported to C++
This commit is contained in:
@@ -284,6 +284,7 @@ generator = cpp(context, "DreamGen", blacklist = [
|
||||
'usecharset1',
|
||||
'usetempcharset',
|
||||
'disablepath',
|
||||
'getbackfromob',
|
||||
], skip_output = [
|
||||
# These functions are processed but not output
|
||||
'dreamweb',
|
||||
|
||||
@@ -3229,17 +3229,6 @@ void DreamGenContext::makemainscreen() {
|
||||
data.byte(kManisoffscreen) = 0;
|
||||
}
|
||||
|
||||
void DreamGenContext::getbackfromob() {
|
||||
STACK_CHECK;
|
||||
_cmp(data.byte(kPickup), 1);
|
||||
if (!flags.z())
|
||||
goto notheldob;
|
||||
blank();
|
||||
return;
|
||||
notheldob:
|
||||
getback1();
|
||||
}
|
||||
|
||||
void DreamGenContext::incryanpage() {
|
||||
STACK_CHECK;
|
||||
_cmp(data.byte(kCommandtype), 222);
|
||||
|
||||
@@ -417,7 +417,6 @@ public:
|
||||
static const uint16 addr_openob = 0xc354;
|
||||
static const uint16 addr_openinv = 0xc34c;
|
||||
static const uint16 addr_incryanpage = 0xc348;
|
||||
static const uint16 addr_getbackfromob = 0xc344;
|
||||
static const uint16 addr_makemainscreen = 0xc340;
|
||||
static const uint16 addr_findallopen = 0xc32c;
|
||||
static const uint16 addr_fillopen = 0xc324;
|
||||
@@ -1447,7 +1446,7 @@ public:
|
||||
//void examineobtext();
|
||||
void liftnoise();
|
||||
void workoutframes();
|
||||
void getbackfromob();
|
||||
//void getbackfromob();
|
||||
void dumpsymbox();
|
||||
void loadgame();
|
||||
void getridoftemp();
|
||||
|
||||
@@ -257,6 +257,12 @@ void DreamGenContext::transfertext() {
|
||||
data.word(kExtextpos) += len + 1;
|
||||
}
|
||||
|
||||
void DreamGenContext::getbackfromob() {
|
||||
if (data.byte(kPickup) != 1)
|
||||
getback1();
|
||||
else
|
||||
blank();
|
||||
}
|
||||
|
||||
} /*namespace dreamgen */
|
||||
|
||||
|
||||
@@ -337,5 +337,5 @@
|
||||
void dolook();
|
||||
void usetempcharset();
|
||||
void usecharset1();
|
||||
|
||||
void getbackfromob();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user