[Scummvm-cvs-logs] SF.net SVN: scummvm:[33407] scummvm/trunk/engines/cine/various.cpp

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Tue Jul 29 14:56:32 CEST 2008


Revision: 33407
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33407&view=rev
Author:   buddha_
Date:     2008-07-29 12:56:32 +0000 (Tue, 29 Jul 2008)

Log Message:
-----------
Added a debug message to loadTempSaveOS's to check whether we loaded the whole savefile. Made objectStruct's clearing also clear x and y member variables in resetEngine.

Modified Paths:
--------------
    scummvm/trunk/engines/cine/various.cpp

Modified: scummvm/trunk/engines/cine/various.cpp
===================================================================
--- scummvm/trunk/engines/cine/various.cpp	2008-07-29 11:01:27 UTC (rev 33406)
+++ scummvm/trunk/engines/cine/various.cpp	2008-07-29 12:56:32 UTC (rev 33407)
@@ -572,6 +572,8 @@
 	messageTable.clear();
 
 	for (int i = 0; i < NUM_MAX_OBJECT; i++) {
+		objectTable[i].x = 0;
+		objectTable[i].y = 0;
 		objectTable[i].part = 0;
 		objectTable[i].name[0] = 0;
 		objectTable[i].frame = 0;
@@ -860,6 +862,12 @@
 	// TODO: Add current music loading and playing here
 	// TODO: Palette handling?
 
+	if (in.pos() == in.size()) {
+		debug(3, "loadTempSaveOS: Loaded the whole savefile.");		
+	} else {
+		warning("loadTempSaveOS: Loaded the savefile but didn't exhaust it completely. Something was left over");
+	}
+
 	return !in.ioFailed();
 }
 


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