mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
Fixed Animation::getTopAnimation()
It does not return kTitleText and others. This caused flickering of speech texts on/off when the title got displayed under the mouse. svn-id: r46056
This commit is contained in:
parent
a2b056c288
commit
509444cc91
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user