aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/op_cmd.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-14 02:01:28 +0100
committerMartin Kiewitz2016-02-14 02:01:28 +0100
commit9a9ddc777e2fe1fe17db737915d0e1abd166cf86 (patch)
treed13ad02c141f6b860212575f7f102648ce8373ac /engines/agi/op_cmd.cpp
parentad7372b0c27f15e0f6313895c99963c9954758f8 (diff)
downloadscummvm-rg350-9a9ddc777e2fe1fe17db737915d0e1abd166cf86.tar.gz
scummvm-rg350-9a9ddc777e2fe1fe17db737915d0e1abd166cf86.tar.bz2
scummvm-rg350-9a9ddc777e2fe1fe17db737915d0e1abd166cf86.zip
AGI: set.pri.base was actually available in AGI2.425
Was available only in 2.425 and in 2.936+. Fixing comment accordingly. Also allowing the command for 2.425.
Diffstat (limited to 'engines/agi/op_cmd.cpp')
-rw-r--r--engines/agi/op_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp
index 8b24d250b1..e7363c313a 100644
--- a/engines/agi/op_cmd.cpp
+++ b/engines/agi/op_cmd.cpp
@@ -2180,8 +2180,8 @@ void cmdPushScript(AgiGame *state, AgiEngine *vm, uint8 *parameter) {
}
void cmdSetPriBase(AgiGame *state, AgiEngine *vm, uint8 *parameter) {
- if (getVersion() < 0x2936) {
- // was not available before 2.936 (last AGI2 version)
+ if ((getVersion() != 0x2425) && (getVersion() < 0x2936)) {
+ // was only available in the 2.425 interpreter and from 2.936 (last AGI2 version) onwards
warning("set.pri.base called, although not available for current AGI version");
return;
}