summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-18 05:11:16 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-18 05:11:16 +0000
commitb8f4f50faab8b771ad053c154e781d129ef55005 (patch)
tree1c00aad3b5f4514450a2d91035453b1ba9abf474
parent829e64f681f2cbe7d6b7ef8b87993f538d4a4ca2 (diff)
downloadcrawl-ref-b8f4f50faab8b771ad053c154e781d129ef55005.tar.gz
crawl-ref-b8f4f50faab8b771ad053c154e781d129ef55005.zip
[2514205] [2484157] Reverting my r7976 change to travel code that broke travel that routed through other levels. (Sorry!)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8531 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/travel.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index f6eed0bc87..3dc2696ae7 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -2641,18 +2641,13 @@ static int _find_transtravel_stair( const level_id &cur,
// Okay, we don't seem to have a distance available to us, which
// means we're either (a) not standing on stairs or (b) whoever
// initiated interlevel travel didn't call
- // _populate_stair_distances or (c) we're trying to travel to
- // a non-traversable square. Assuming we're not on stairs, that
+ // _populate_stair_distances. Assuming we're not on stairs, that
// situation can arise only if interlevel travel has been triggered
// for a location on the same level. If that's the case, we can get
// the distance off the travel_point_distance matrix.
-
deltadist = travel_point_distance[target.pos.x][target.pos.y];
-
- // If deltadist is zero, travel is trying to occur to a non-seeded
- // square, so bail. This can happen if trying to travel to a wall.
if (!deltadist && stair != target.pos)
- return (-1);
+ deltadist = -1;
}
if (deltadist != -1)