From 7e8747d114645c5d58d5fd59353b3f34b93e094f Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 12 Oct 2008 02:55:55 +0000 Subject: Minor changes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7223 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/travel.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/travel.cc') diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index 421365c9e4..e38dea016b 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -395,11 +395,11 @@ const char *run_mode_name(int runmode) : ""); } -unsigned char is_waypoint(int x, int y) +unsigned char is_waypoint(const coord_def &p) { if (!can_travel_interlevel()) return 0; - return curr_waypoints[x][y]; + return curr_waypoints[p.x][p.y]; } inline bool is_stash(const LevelStashes *ls, int x, int y) @@ -1796,7 +1796,7 @@ bool travel_pathfind::path_flood(const coord_def &c, const coord_def &dc) && feature != DNGN_SHALLOW_WATER && feature != DNGN_DEEP_WATER && feature != DNGN_LAVA - || is_waypoint(dc.x, dc.y) + || is_waypoint(dc) || is_stash(ls, dc.x, dc.y))) { features->push_back(dc); -- cgit v1.2.3-54-g00ecf