summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-15 13:12:23 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-15 13:48:03 +0200
commit727a5f87e3fc402b7218833a6f34203def33dfc4 (patch)
tree793215fc567c65f356c31238fff960ab7cc1dcb0 /crawl-ref/source/directn.cc
parent8a1c8f0ebf1f8004c1dd6b7196f01359c6bef906 (diff)
downloadcrawl-ref-727a5f87e3fc402b7218833a6f34203def33dfc4.tar.gz
crawl-ref-727a5f87e3fc402b7218833a6f34203def33dfc4.zip
Remove redundant conditional.
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index 3ea523968b..53f214c599 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -1289,10 +1289,7 @@ void direction(dist& moves, targetting_type restricts,
{
// Direction not allowed, so just move in that direction.
// Maybe make this a bigger jump?
- if (restricts == DIR_TARGET)
- moves.target += Compass[i] * 3;
- else
- moves.target += Compass[i];
+ moves.target += Compass[i] * 3;
}
break;