aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2011-02-03 14:44:58 +0000
committerFilippos Karapetis2011-02-03 14:44:58 +0000
commitc4861605df3964f3ea89a6cdf3873a1c87c48f12 (patch)
tree2e14c1a4e18123d6c4e8577686842b1ab4307d67 /engines/sci
parent74caf6cd714cdb031db78f2fd44cff0378d3f08c (diff)
downloadscummvm-rg350-c4861605df3964f3ea89a6cdf3873a1c87c48f12.tar.gz
scummvm-rg350-c4861605df3964f3ea89a6cdf3873a1c87c48f12.tar.bz2
scummvm-rg350-c4861605df3964f3ea89a6cdf3873a1c87c48f12.zip
SCI: Fix a typo, the interpreter can handle robot video versions 3 - 5
svn-id: r55753
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/robot.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/sci/graphics/robot.cpp b/engines/sci/graphics/robot.cpp
index ea25072f74..f3e58951f2 100644
--- a/engines/sci/graphics/robot.cpp
+++ b/engines/sci/graphics/robot.cpp
@@ -98,7 +98,7 @@ void GfxRobot::init(GuiResourceId resourceId, uint16 x, uint16 y) {
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 @@ void GfxRobot::init(GuiResourceId resourceId, uint16 x, uint16 y) {
_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");