Skip to content

Commit

Permalink
PINK: fix updating cursor when mouse isn't moving
Browse files Browse the repository at this point in the history
  • Loading branch information
voltya authored and sev- committed Jun 28, 2018
1 parent c4461cb commit b32af31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engines/pink/objects/actors/lead_actor.cpp
Expand Up @@ -130,6 +130,7 @@ void LeadActor::update() {
if (!_sequencer->_context) {
_state = _nextState;
_nextState = kUndefined;
forceUpdateCursor();
}
break;
case kInventory:
Expand Down Expand Up @@ -367,14 +368,17 @@ bool LeadActor::sendUseClickMessage(Actor *actor) {
actor->onUseClickMessage(mgr->getCurrentItem(), mgr);
if (item->getCurrentOwner() != this->_name)
_isHaveItem = false;
forceUpdateCursor();
return true;
}

bool LeadActor::sendLeftClickMessage(Actor *actor) {
assert(_state != kPlayingExitSequence);
_nextState = kReady;
_state = kPlayingSequence;
return actor->onLeftClickMessage();
actor->onLeftClickMessage();
forceUpdateCursor();
return true;
}

WalkLocation *LeadActor::getWalkDestination() {
Expand Down

0 comments on commit b32af31

Please sign in to comment.