summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/areas.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2013-05-23 18:35:35 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2013-10-30 21:31:26 -0600
commit630d5cd27fa467db0cfa8abca8716f5fc92b91d3 (patch)
tree94ef65b835bc790601698b5fd58ec64baa6d0fdd /crawl-ref/source/areas.cc
parent04def9691ecb83211848921f2ff546bc06f9493d (diff)
downloadcrawl-ref-630d5cd27fa467db0cfa8abca8716f5fc92b91d3.tar.gz
crawl-ref-630d5cd27fa467db0cfa8abca8716f5fc92b91d3.zip
Have the Orb not take up an inventory slot.
It still, however, costs 60 aum to carry, and has all of its other effects.
Diffstat (limited to 'crawl-ref/source/areas.cc')
-rw-r--r--crawl-ref/source/areas.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/areas.cc b/crawl-ref/source/areas.cc
index 8b0b4ea7f8..a0691534eb 100644
--- a/crawl-ref/source/areas.cc
+++ b/crawl-ref/source/areas.cc
@@ -201,12 +201,10 @@ static void _update_agrid()
if (you.char_direction == GDT_ASCENDING && !you.pos().origin())
{
- ASSERT(env.orb_pos == you.pos());
-
const int r = 5;
- _agrid_centres.push_back(area_centre(AREA_ORB, env.orb_pos, r));
- los_glob los(env.orb_pos, LOS_DEFAULT);
- for (radius_iterator ri(env.orb_pos, r, C_CIRCLE, &los);
+ _agrid_centres.push_back(area_centre(AREA_ORB, you.pos(), r));
+ los_glob los(you.pos(), LOS_DEFAULT);
+ for (radius_iterator ri(you.pos(), r, C_CIRCLE, &los);
ri; ++ri)
{
_set_agrid_flag(*ri, APROP_ORB);