summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.h
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-26 20:19:40 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-26 20:19:40 +0000
commit7b6bfa7d8c9922a6a690fe31db02d678bb60298b (patch)
treec88a4b788f7e156a53d74a131c75a5ade27bab60 /crawl-ref/source/stuff.h
parent105d4e75d3ada5b2dfbcd08ab44fff124472a8cf (diff)
downloadcrawl-ref-7b6bfa7d8c9922a6a690fe31db02d678bb60298b.tar.gz
crawl-ref-7b6bfa7d8c9922a6a690fe31db02d678bb60298b.zip
Fix bounds checks for monsters' moving off the map to use map_bounds().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8793 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.h')
-rw-r--r--crawl-ref/source/stuff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/stuff.h b/crawl-ref/source/stuff.h
index 415feeaa2b..3e65492b17 100644
--- a/crawl-ref/source/stuff.h
+++ b/crawl-ref/source/stuff.h
@@ -152,7 +152,11 @@ int yesnoquit( const char* str, bool safe = true, int safeanswer = 0,
bool allow_all = false, bool clear_after = true,
char alt_yes = 'Y', char alt_yes2 = 'Y' );
+bool in_bounds_x(int x);
+bool in_bounds_y(int y);
bool in_bounds(int x, int y);
+bool map_bounds_x(int x);
+bool map_bounds_y(int y);
bool map_bounds(int x, int y);
coord_def random_in_bounds();