aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-10-10 06:48:00 +0000
committerTravis Howell2004-10-10 06:48:00 +0000
commit06951591392ab72703e7533efdb1916d504aa33e (patch)
tree0172024e426c3fa655a2729624633ebab7de6fe4 /scumm
parentc8dc1483ac0b8f2ecb59de837e4b6e0809c558e1 (diff)
downloadscummvm-rg350-06951591392ab72703e7533efdb1916d504aa33e.tar.gz
scummvm-rg350-06951591392ab72703e7533efdb1916d504aa33e.tar.bz2
scummvm-rg350-06951591392ab72703e7533efdb1916d504aa33e.zip
Correct a VAR value.
svn-id: r15504
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v90he.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/scumm/script_v90he.cpp b/scumm/script_v90he.cpp
index 41b3499074..804f5cb793 100644
--- a/scumm/script_v90he.cpp
+++ b/scumm/script_v90he.cpp
@@ -585,7 +585,7 @@ void ScummEngine_v90he::processWizImage(const WizParameters *params) {
} else {
uint32 id = f.readUint32BE();
if (id != MKID('AWIZ') && id != MKID('MULT')) {
- VAR(0x20) = -1;
+ VAR(VAR_GAME_LOADED) = -1;
} else {
uint32 size = f.readUint32BE();
f.seek(0, SEEK_SET);
@@ -593,9 +593,9 @@ void ScummEngine_v90he::processWizImage(const WizParameters *params) {
if (f.read(p, size) != size) {
nukeResource(rtImage, params->img.resNum);
warning("i/o error when reading '%s'", params->filename);
- VAR(0x20) = -2;
+ VAR(VAR_GAME_LOADED) = -2;
} else {
- VAR(0x20) = 0;
+ VAR(VAR_GAME_LOADED) = 0;
}
}
f.close();
@@ -605,20 +605,20 @@ void ScummEngine_v90he::processWizImage(const WizParameters *params) {
case 4:
if (params->processFlags & 0x800) {
if (params->unk_14C != 0) {
- VAR(0x77) = -1;
+ VAR(119) = -1;
} else {
File f;
if (!f.open((const char *)params->filename, File::kFileWriteMode)) {
warning("Unable to open for write '%s'", params->filename);
- VAR(0x77) = -3;
+ VAR(119) = -3;
} else {
byte *p = getResourceAddress(rtImage, params->img.resNum);
uint32 size = READ_BE_UINT32(p + 4);
if (f.write(p, size) != size) {
warning("i/o error when writing '%s'", params->filename);
- VAR(0x77) = -2;
+ VAR(119) = -2;
} else {
- VAR(0x77) = 0;
+ VAR(119) = 0;
}
f.close();
}