DIRECTOR: don't update currentClickOnSpriteId when button is up.

This commit is contained in:
ysj1173886760 2021-08-11 16:40:21 +08:00
parent ffb5be1937
commit ca97db0fbd

View File

@ -198,8 +198,6 @@ bool Movie::processEvent(Common::Event &event) {
case Common::EVENT_LBUTTONUP:
pos = _window->getMousePos();
_currentClickOnSpriteId = sc->getActiveSpriteIDFromPos(pos);
if (_currentHiliteChannelId && sc->_channels[_currentHiliteChannelId]) {
g_director->getCurrentWindow()->setDirty(true);
g_director->getCurrentWindow()->addDirtyRect(sc->_channels[_currentHiliteChannelId]->getBbox());