diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-26 04:43:58 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-26 04:43:58 +0000 |
commit | 7124f889e3c585947d594aa38be346bc87c08069 (patch) | |
tree | 40f1109c243083f31c69f4cd4f545a638833c194 /crawl-ref/source/tilepick.cc | |
parent | 8921c5b2703c3aa590026bbc8052ba129b6fc02c (diff) | |
download | crawl-ref-7124f889e3c585947d594aa38be346bc87c08069.tar.gz crawl-ref-7124f889e3c585947d594aa38be346bc87c08069.zip |
Simplify checks for grids containing water.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8763 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r-- | crawl-ref/source/tilepick.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc index d6beec8f86..acf9bbfd3e 100644 --- a/crawl-ref/source/tilepick.cc +++ b/crawl-ref/source/tilepick.cc @@ -118,7 +118,7 @@ static int _bow_offset(const monsters *mon) static int _tileidx_monster_base(const monsters *mon, bool detected) { int grid = grd(mon->pos()); - bool in_water = (grid == DNGN_SHALLOW_WATER || grid == DNGN_DEEP_WATER); + bool in_water = grid_is_water(grid); int type = mon->type; |