[Scummvm-cvs-logs] SF.net SVN: scummvm:[40550] scummvm/trunk/engines/agos/debug.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Thu May 14 09:20:27 CEST 2009


Revision: 40550
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40550&view=rev
Author:   Kirben
Date:     2009-05-14 07:20:26 +0000 (Thu, 14 May 2009)

Log Message:
-----------
Minor corrections.

Modified Paths:
--------------
    scummvm/trunk/engines/agos/debug.cpp

Modified: scummvm/trunk/engines/agos/debug.cpp
===================================================================
--- scummvm/trunk/engines/agos/debug.cpp	2009-05-14 07:14:08 UTC (rev 40549)
+++ scummvm/trunk/engines/agos/debug.cpp	2009-05-14 07:20:26 UTC (rev 40550)
@@ -299,20 +299,21 @@
 
 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 @@
 			dumpVgaFile(_curVgaFile1);
 		}
 	}
-
-	error("Complete");
 }
 
 void AGOSEngine_Feeble::dumpVgaFile(const byte *vga) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list