summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-03-12 12:29:52 +0100
committerRobert Vollmert <rvollmert@gmx.net>2010-03-12 13:13:21 +0100
commit934a388c504021d1de5bb927b77f3f7cba671771 (patch)
tree14bd4800392d6200fef64e55f7020932bfda31bf /crawl-ref/source/directn.h
parent7c3208722052cda3519518e97b3fe05c7f15df85 (diff)
downloadcrawl-ref-934a388c504021d1de5bb927b77f3f7cba671771.tar.gz
crawl-ref-934a388c504021d1de5bb927b77f3f7cba671771.zip
Fix monster list indexing bug.
_mlist_index_to_letter and _mlist_letter_to_index got out of sync when 'e' was added. They're now next to each other which hopefully makes this less likely to happen in the future. If someone knows a nice way to combine both into one, that would be even better.
Diffstat (limited to 'crawl-ref/source/directn.h')
-rw-r--r--crawl-ref/source/directn.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/directn.h b/crawl-ref/source/directn.h
index de2246725e..9c61b6aa57 100644
--- a/crawl-ref/source/directn.h
+++ b/crawl-ref/source/directn.h
@@ -253,6 +253,10 @@ private:
};
+#ifndef USE_TILE
+char mlist_index_to_letter(int index);
+#endif
+
void direction(dist &moves, const direction_chooser_args& args);
bool in_los_bounds(const coord_def& p);