aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/debug.cpp
diff options
context:
space:
mode:
authorTravis Howell2009-05-14 07:20:26 +0000
committerTravis Howell2009-05-14 07:20:26 +0000
commitf63cf2df8f137fc85b7493f9d60b2a1acc3162ea (patch)
treec9c479a6cbd8c1649fce6d45bcf81ae7f9ac2146 /engines/agos/debug.cpp
parent3117a8d87fe2f858274fad87f166eb16b1147e2b (diff)
downloadscummvm-rg350-f63cf2df8f137fc85b7493f9d60b2a1acc3162ea.tar.gz
scummvm-rg350-f63cf2df8f137fc85b7493f9d60b2a1acc3162ea.tar.bz2
scummvm-rg350-f63cf2df8f137fc85b7493f9d60b2a1acc3162ea.zip
Minor corrections.
svn-id: r40550
Diffstat (limited to 'engines/agos/debug.cpp')
-rw-r--r--engines/agos/debug.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/engines/agos/debug.cpp b/engines/agos/debug.cpp
index 6f17831a88..d52bcc175a 100644
--- a/engines/agos/debug.cpp
+++ b/engines/agos/debug.cpp
@@ -299,20 +299,21 @@ void AGOSEngine::dumpVgaScriptAlways(const byte *ptr, uint16 res, uint16 id) {
void AGOSEngine::dumpAllVgaImageFiles() {
uint8 start = (getGameType() == GType_PN) ? 0 : 2;
- uint8 end = (getGameType() == GType_PN) ? 26 : 450;
+ uint16 end = (getGameType() == GType_PN) ? 26 : 450;
- for (int f = start; f < end; f++) {
- dumpVgaBitmaps(f);
+ for (int z = start; z < end; z++) {
+ loadZone(z, false);
+ dumpVgaBitmaps(z);
}
}
void AGOSEngine::dumpAllVgaScriptFiles() {
uint8 start = (getGameType() == GType_PN) ? 0 : 2;
- uint8 end = (getGameType() == GType_PN) ? 26 : 450;
+ uint16 end = (getGameType() == GType_PN) ? 26 : 450;
- for (int f = start; f < end; f++) {
- uint16 zoneNum = (getGameType() == GType_PN) ? 0 : f;
- loadZone(f, false);
+ for (int z = start; z < end; z++) {
+ uint16 zoneNum = (getGameType() == GType_PN) ? 0 : z;
+ loadZone(z, false);
VgaPointersEntry *vpe = &_vgaBufferPointers[zoneNum];
if (vpe->vgaFile1 != NULL) {
@@ -320,8 +321,6 @@ void AGOSEngine::dumpAllVgaScriptFiles() {
dumpVgaFile(_curVgaFile1);
}
}
-
- error("Complete");
}
void AGOSEngine_Feeble::dumpVgaFile(const byte *vga) {