summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-04 17:32:00 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-04 17:32:00 +0000
commit55d5736219e39edcf1976aa6ac909a64e7104cf1 (patch)
tree17b21b814bf991b86e6d88a9d738c60f709fa8e4 /crawl-ref/source/tilepick.cc
parent1df63f2d24648d2467da71b81ba53f039e6539c0 (diff)
downloadcrawl-ref-55d5736219e39edcf1976aa6ac909a64e7104cf1.tar.gz
crawl-ref-55d5736219e39edcf1976aa6ac909a64e7104cf1.zip
Move a bit more things to use coord_defs and iterators instead of x,y.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8892 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index 8677a17473..a034c7f3e2 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -82,10 +82,10 @@ int tile_unseen_flag(const coord_def& gc)
{
if (!map_bounds(gc))
return TILE_FLAG_UNSEEN;
- else if (is_terrain_known(gc.x,gc.y)
- && !is_terrain_seen(gc.x,gc.y)
- || is_envmap_detected_item(gc.x,gc.y)
- || is_envmap_detected_mons(gc.x,gc.y))
+ else if (is_terrain_known(gc)
+ && !is_terrain_seen(gc)
+ || is_envmap_detected_item(gc)
+ || is_envmap_detected_mons(gc))
{
return TILE_FLAG_MM_UNSEEN;
}