summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-29 10:42:36 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-29 10:42:36 +0000
commit77be5ae4a0b896e42f0169d880582f3842568c83 (patch)
treefa6f318b9c73fa998798942bee709b54e945df49 /crawl-ref/source/travel.cc
parent5d132a7fba202b7b19807d1058ac680bfbb1e0f3 (diff)
downloadcrawl-ref-77be5ae4a0b896e42f0169d880582f3842568c83.tar.gz
crawl-ref-77be5ae4a0b896e42f0169d880582f3842568c83.zip
Made default targeting an option (default_target, defaults to false.)
If default_target is set, direction() now starts on the closest target (as if you pressed '+') if your previous target is invalid. Removed old fizzle check option. Ctrl-T is now free. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@902 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r--crawl-ref/source/travel.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index 23c62094cc..38bff25688 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -84,7 +84,9 @@ static bool traps_inited = false;
travel_distance_grid_t travel_point_distance;
static unsigned char curr_waypoints[GXM][GYM];
+#ifdef CLUA_BINDINGS
static signed char curr_traps[GXM][GYM];
+#endif
static FixedArray< unsigned short, GXM, GYM > mapshadow;