[Scummvm-cvs-logs] SF.net SVN: scummvm:[55753] scummvm/trunk/engines/sci/graphics/robot.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu Feb 3 15:44:58 CET 2011


Revision: 55753
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55753&view=rev
Author:   thebluegr
Date:     2011-02-03 14:44:58 +0000 (Thu, 03 Feb 2011)

Log Message:
-----------
SCI: Fix a typo, the interpreter can handle robot video versions 3 - 5

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/robot.cpp

Modified: scummvm/trunk/engines/sci/graphics/robot.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/robot.cpp	2011-02-03 14:37:50 UTC (rev 55752)
+++ scummvm/trunk/engines/sci/graphics/robot.cpp	2011-02-03 14:44:58 UTC (rev 55753)
@@ -98,7 +98,7 @@
 		return;
 	}
 
-	// There are several versions of robot files, ranging from 3 to 6. Version
+	// There are several versions of robot files, ranging from 3 to 5. Version
 	// 5 is the version of the majority of the robot files. PQ:SWAT is the only
 	// game that uses robots of a different version (version 4), but there are
 	// no known examples of other robot versions.
@@ -126,6 +126,11 @@
 		_palOffset += READ_LE_UINT32(_resourceData + 60) + 14;
 
 	switch (_version) {
+	case 3:
+		// Unsupported, and there doesn't seem to be any game that actually
+		// uses this, thus error out so that we find out where this is used
+		error("Unknown robot version: %d", _version);
+		break;
 	case 4:
 		// TODO: Add support for this version (used in PQ:SWAT)
 		warning("TODO: add support for v4 robot videos");


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