diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-23 21:53:17 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-23 21:53:17 +0000 |
commit | f2dffb84bd291f0443c38832561907013e446390 (patch) | |
tree | 7831095064ec37ccbea3ebe791c64287c9b7c4ff /crawl-ref/source/stuff.cc | |
parent | 8eaa5c76d27c6ade810c1dccb936db522a019bab (diff) | |
download | crawl-ref-f2dffb84bd291f0443c38832561907013e446390.tar.gz crawl-ref-f2dffb84bd291f0443c38832561907013e446390.zip |
Consolidate player tracer messages.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5196 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index 128a19de34..c17d4bf1fb 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -135,13 +135,13 @@ void radius_iterator::step_back() bool radius_iterator::on_valid_square() const { - if ( !in_bounds(location) ) + if (!in_bounds(location)) return false; - if ( !roguelike_metric && (location - center).abs() > radius*radius ) + if (!roguelike_metric && (location - center).abs() > radius*radius) return false; - if ( require_los && !see_grid(location) ) + if (require_los && !see_grid(location)) return false; - if ( exclude_center && location == center ) + if (exclude_center && location == center) return false; return true; } @@ -1098,7 +1098,7 @@ bool player_can_hear(int x, int y) return (!silenced(x, y) && !silenced(you.x_pos, you.y_pos)); } // end player_can_hear() -// Returns true if inside the area the player can move and dig (ie exclusive) +// 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 |