aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2011-02-07 09:03:58 +0000
committerFilippos Karapetis2011-02-07 09:03:58 +0000
commitd7fb5239e7ed9b95442b8a481cdd9e6c25a9acc5 (patch)
tree36c3a0641517c93e5a06c596eb8043a229818fa4
parentcd599216a595c9ca7d36aa034b054c1da38d4591 (diff)
downloadscummvm-rg350-d7fb5239e7ed9b95442b8a481cdd9e6c25a9acc5.tar.gz
scummvm-rg350-d7fb5239e7ed9b95442b8a481cdd9e6c25a9acc5.tar.bz2
scummvm-rg350-d7fb5239e7ed9b95442b8a481cdd9e6c25a9acc5.zip
SCI: v4 robots are only used in the PQ:SWAT demo, the full version uses v5. Some cleanup
svn-id: r55800
-rw-r--r--engines/sci/graphics/robot.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/engines/sci/graphics/robot.cpp b/engines/sci/graphics/robot.cpp
index 2853e8aa52..464e32fad1 100644
--- a/engines/sci/graphics/robot.cpp
+++ b/engines/sci/graphics/robot.cpp
@@ -103,19 +103,11 @@ void GfxRobot::init(GuiResourceId resourceId, uint16 x, uint16 y) {
// 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];