diff options
author | Enne Walker <enne.walker@gmail.com> | 2010-06-09 00:37:04 -0400 |
---|---|---|
committer | Enne Walker <enne.walker@gmail.com> | 2010-06-09 10:33:11 -0400 |
commit | 9387d936cf324af59e94f34f3b266aa28b38f3f0 (patch) | |
tree | 45997f12c1cb91a3cb5c5c7ed848f65f58410e3e /crawl-ref/source/exclude.cc | |
parent | 5614acfac20dd778f0e79b9bb91e3cf5be557c69 (diff) | |
download | crawl-ref-9387d936cf324af59e94f34f3b266aa28b38f3f0.tar.gz crawl-ref-9387d936cf324af59e94f34f3b266aa28b38f3f0.zip |
Change update_minimap to use coord_def.
Diffstat (limited to 'crawl-ref/source/exclude.cc')
-rw-r--r-- | crawl-ref/source/exclude.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/exclude.cc b/crawl-ref/source/exclude.cc index 6f04a31c6d..d39de82ea2 100644 --- a/crawl-ref/source/exclude.cc +++ b/crawl-ref/source/exclude.cc @@ -367,11 +367,9 @@ static void _tile_exclude_gmap_update(const coord_def &p) for (int x = -8; x <= 8; x++) for (int y = -8; y <= 8; y++) { - int px = p.x+x, py = p.y+y; - if (in_bounds(coord_def(px,py))) - { - tiles.update_minimap(px, py); - } + const coord_def pc(p.x + x, p.y + y); + if (in_bounds(pc)) + tiles.update_minimap(pc); } } #endif |