From f9cb4e311fbd85359275929621ed1eafc50d0173 Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 1 Apr 2008 14:45:16 +0000 Subject: Add yet more whitespace fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4024 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/stuff.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/stuff.cc') diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index dbef5561ba..8f2055badc 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -920,7 +920,7 @@ int yesnoquit( const char* str, bool safe, int safeanswer, mprf("[Y]es%s, [N]o or [Q]uit only, please.", _list_alternative_yes(alt_yes, alt_yes2, false, true).c_str()); } -} +} // More accurate than distance() given the actual movement geometry -- bwr int grid_distance( int x, int y, int x2, int y2 ) @@ -974,7 +974,7 @@ bool player_can_hear(int x, int y) // Returns true if inside the area the player can move and dig (ie exclusive) bool in_bounds( int x, int y ) { - return (x > X_BOUND_1 && x < X_BOUND_2 + return (x > X_BOUND_1 && x < X_BOUND_2 && y > Y_BOUND_1 && y < Y_BOUND_2); } -- cgit v1.2.3-54-g00ecf