summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-24 11:39:35 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-24 11:39:35 +0000
commit4003aea18baa94ba7530dcccc2a6513f55c53e39 (patch)
tree215aaa120b2d6c5df574e41f79a035a5168b63fe
parent0e45d433001ad595b04911a963a381728655d139 (diff)
downloadcrawl-ref-4003aea18baa94ba7530dcccc2a6513f55c53e39.tar.gz
crawl-ref-4003aea18baa94ba7530dcccc2a6513f55c53e39.zip
Fixed broken target wrap in level-map (grr).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@489 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 8cc87ab02b..d222a7484e 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -1904,7 +1904,7 @@ static int find_feature( const std::vector<coord_def>& features,
if (firstx != -1) {
*move_x = firstx - (start_x + curs_x);
*move_y = firsty - (start_y + curs_y);
- return matchcount;
+ return firstmatch;
}
return 0;
}