diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/draci/animation.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp index 1b6cafed4e..dc14c7bb0d 100644 --- a/engines/draci/animation.cpp +++ b/engines/draci/animation.cpp @@ -504,10 +504,12 @@ const Animation *AnimationManager::getTopAnimation(int x, int y) const { } } - // Return the top-most animation object, unless it is an - // overlay sprite and there is an actual object underneath it. + // Return the top-most animation object, unless it is a + // non-clickable sprite (overlay, debugging sprites for + // walking, or title/speech text) and there is an actual object + // underneath it. if (matches) { - if (anim->getID() != kOverlayImage) { + if (anim->getID() > kOverlayImage || anim->getID() < kSpeechText) { return anim; } else if (retval == NULL) { retval = anim; |