From d7fb5239e7ed9b95442b8a481cdd9e6c25a9acc5 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 7 Feb 2011 09:03:58 +0000 Subject: SCI: v4 robots are only used in the PQ:SWAT demo, the full version uses v5. Some cleanup svn-id: r55800 --- engines/sci/graphics/robot.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'engines/sci/graphics') 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]; -- cgit v1.2.3