diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-15 13:12:23 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-15 13:48:03 +0200 |
commit | 727a5f87e3fc402b7218833a6f34203def33dfc4 (patch) | |
tree | 793215fc567c65f356c31238fff960ab7cc1dcb0 /crawl-ref/source/directn.cc | |
parent | 8a1c8f0ebf1f8004c1dd6b7196f01359c6bef906 (diff) | |
download | crawl-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.cc | 5 |
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; |