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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Feb 7 10:04:00 CET 2011


Revision: 55800
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55800&view=rev
Author:   thebluegr
Date:     2011-02-07 09:03:58 +0000 (Mon, 07 Feb 2011)

Log Message:
-----------
SCI: v4 robots are only used in the PQ:SWAT demo, the full version uses v5. Some cleanup

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-07 05:53:30 UTC (rev 55799)
+++ scummvm/trunk/engines/sci/graphics/robot.cpp	2011-02-07 09:03:58 UTC (rev 55800)
@@ -103,19 +103,11 @@
 
 	// There are several versions of robot files, ranging from 3 to 6.
 	// v3: no known examples
-	// v4: PQ:SWAT
+	// v4: PQ:SWAT demo
 	// v5: SCI2.1 and SCI3 games
 	// v6: SCI3 games
-	switch (_header.version) {
-	case 4:	// used in PQ:SWAT
-	case 5:	// used in most SCI2.1 games and in some SCI3 robots
-	case 6:	// used in SCI3 games
-		// Supported
-		break;
-	default:
-		// Unsupported, error out so that we find out where this is used
+	if (_header.version < 4 || _header.version > 6)
 		error("Unknown robot version: %d", _header.version);
-	}
 
 	_frameTotalSize = new uint32[_header.frameCount];
 


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