diff options
author | Travis Howell | 2004-03-01 00:32:47 +0000 |
---|---|---|
committer | Travis Howell | 2004-03-01 00:32:47 +0000 |
commit | 2f01efd9f3489f24ffaf6e1569605c521bea2376 (patch) | |
tree | 2678dc7a5acd6f4dc35f8d01136566412d5eee58 /sword2/anims.cpp | |
parent | 807bc5e0fa341ebbe28742b412f8d319dd6b14ec (diff) | |
download | scummvm-rg350-2f01efd9f3489f24ffaf6e1569605c521bea2376.tar.gz scummvm-rg350-2f01efd9f3489f24ffaf6e1569605c521bea2376.tar.bz2 scummvm-rg350-2f01efd9f3489f24ffaf6e1569605c521bea2376.zip |
Add fix for error at end of sword2demo (From eriktorbjorn)
Prevent false warnings in demo.
svn-id: r13102
Diffstat (limited to 'sword2/anims.cpp')
-rw-r--r-- | sword2/anims.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sword2/anims.cpp b/sword2/anims.cpp index 6614ce6e82..002b739a6d 100644 --- a/sword2/anims.cpp +++ b/sword2/anims.cpp @@ -621,6 +621,10 @@ int32 Logic::fnPlaySequence(int32 *params) { // params: 0 pointer to null-terminated ascii filename // 1 number of frames in the sequence, used for PSX. + // Only two sequences exist in demo + if ((_vm->_features & GF_DEMO) && params[0] != 3626 && params[0] != 3879846) + return IR_CONT; + char filename[30]; uint32 rv; MovieTextObject *sequenceSpeechArray[MAX_SEQUENCE_TEXT_LINES + 1]; |