summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-23 21:12:49 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-24 07:12:41 +0100
commitd4e0b56366894297e22156db8d7a0511cb3e64ec (patch)
treec250e85f54a056b506dd2df4e2b5af6abd0eaeb4 /crawl-ref/source/directn.cc
parent739fbc00f70fe61b6eed0e854950475833c06025 (diff)
downloadcrawl-ref-d4e0b56366894297e22156db8d7a0511cb3e64ec.tar.gz
crawl-ref-d4e0b56366894297e22156db8d7a0511cb3e64ec.zip
Remove redundant check.
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index 39e5fb1a3a..405078316b 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -1079,7 +1079,7 @@ void direction(dist& moves, const targetting_type restricts,
skip_iter = true;
found_autotarget = true;
}
- else if (Options.default_target && (mode == TARG_ENEMY || mode == TARG_HOSTILE))
+ else if (mode == TARG_ENEMY || mode == TARG_HOSTILE)
{
skip_iter = true; // Skip first iteration...XXX mega-hack
if (you.prev_targ != MHITNOT && you.prev_targ != MHITYOU)
@@ -1120,7 +1120,7 @@ void direction(dist& moves, const targetting_type restricts,
// Prompts might get scrolled off if you have too few lines available.
// We'll live with that.
- if ( !just_looking && (show_prompt || beh->should_redraw()) )
+ if (!just_looking && (show_prompt || beh->should_redraw()))
{
mprf(MSGCH_PROMPT, "%s (%s)", prompt ? prompt : "Aim",
target_mode_help_text(restricts));