summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-24 22:49:31 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-24 22:49:31 +0000
commitd0960cef6e8ab122c2b3b9eb21f0549a61f93122 (patch)
tree01b614d0d7a1b9c40db7f5b7f744ca7c9e930304 /crawl-ref/source/travel.cc
parent18e0873492f2ea22830b6ae6e18ced1cb7f4d937 (diff)
downloadcrawl-ref-d0960cef6e8ab122c2b3b9eb21f0549a61f93122.tar.gz
crawl-ref-d0960cef6e8ab122c2b3b9eb21f0549a61f93122.zip
Prompt for players with the teleportitis mutation before attempting to
enter a labyrinth. Switch the order of travel exclusion radii: first LOS_RADIUS, then 1, then 0. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7595 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r--crawl-ref/source/travel.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index 7291a98c78..ea38dd925a 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -438,8 +438,8 @@ void cycle_exclude_radius(const coord_def &p)
switch (curr_radius)
{
- case 1 : curr_radius = LOS_RADIUS; break;
- case LOS_RADIUS: set_exclude(p, 0); break;
+ case LOS_RADIUS: curr_radius = 1; break;
+ case 1 : set_exclude(p, 0); break;
}
#ifdef USE_TILE
@@ -459,7 +459,7 @@ void toggle_exclude(const coord_def &p)
if (is_exclude_root(p))
set_exclude(p, 0);
else
- set_exclude(p, 1);
+ set_exclude(p, LOS_RADIUS);
#ifdef USE_TILE
_tile_exclude_gmap_update(p);