Minor corrections.

svn-id: r40550
This commit is contained in:
Travis Howell 2009-05-14 07:20:26 +00:00
parent 3117a8d87f
commit f63cf2df8f

View File

@ -299,20 +299,21 @@ void AGOSEngine::dumpVgaScriptAlways(const byte *ptr, uint16 res, uint16 id) {
void AGOSEngine::dumpAllVgaImageFiles() { void AGOSEngine::dumpAllVgaImageFiles() {
uint8 start = (getGameType() == GType_PN) ? 0 : 2; 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++) { for (int z = start; z < end; z++) {
dumpVgaBitmaps(f); loadZone(z, false);
dumpVgaBitmaps(z);
} }
} }
void AGOSEngine::dumpAllVgaScriptFiles() { void AGOSEngine::dumpAllVgaScriptFiles() {
uint8 start = (getGameType() == GType_PN) ? 0 : 2; 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++) { for (int z = start; z < end; z++) {
uint16 zoneNum = (getGameType() == GType_PN) ? 0 : f; uint16 zoneNum = (getGameType() == GType_PN) ? 0 : z;
loadZone(f, false); loadZone(z, false);
VgaPointersEntry *vpe = &_vgaBufferPointers[zoneNum]; VgaPointersEntry *vpe = &_vgaBufferPointers[zoneNum];
if (vpe->vgaFile1 != NULL) { if (vpe->vgaFile1 != NULL) {
@ -320,8 +321,6 @@ void AGOSEngine::dumpAllVgaScriptFiles() {
dumpVgaFile(_curVgaFile1); dumpVgaFile(_curVgaFile1);
} }
} }
error("Complete");
} }
void AGOSEngine_Feeble::dumpVgaFile(const byte *vga) { void AGOSEngine_Feeble::dumpVgaFile(const byte *vga) {