Skip to content

Commit

Permalink
ignore unscheduled actors in GameControl
Browse files Browse the repository at this point in the history
  • Loading branch information
fizzet committed May 28, 2013
1 parent 21e467f commit 545259e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gemrb/core/GUI/GameControl.cpp
Expand Up @@ -1431,7 +1431,7 @@ void GameControl::OnMouseOver(unsigned short x, unsigned short y)

Actor *prevActor = lastActor;
// let us target party members even if they are invisible
lastActor = area->GetActor(p, GA_NO_DEAD);
lastActor = area->GetActor(p, GA_NO_DEAD|GA_NO_UNSCHEDULED);
if (lastActor && lastActor->Modified[IE_EA]>=EA_CONTROLLED) {
if (!lastActor->ValidTarget(target_types)) {
lastActor = NULL;
Expand Down Expand Up @@ -2397,7 +2397,7 @@ void GameControl::SetTargetMode(int mode) {
}

void GameControl::ResetTargetMode() {
target_types = GA_NO_DEAD|GA_NO_HIDDEN;
target_types = GA_NO_DEAD|GA_NO_HIDDEN|GA_NO_UNSCHEDULED;
SetTargetMode(TARGET_MODE_NONE);
}

Expand Down

0 comments on commit 545259e

Please sign in to comment.