summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-17 10:02:54 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-17 10:09:35 +0200
commit6845f79a5ed4314c86878d013ec3bb11af92483d (patch)
tree6b3a8d4857bc807c386bbb4b867ff0a605156dd1 /crawl-ref/source/tutorial.cc
parent0c36a4832df8168b4cb45a0300bb165d703cd957 (diff)
downloadcrawl-ref-6845f79a5ed4314c86878d013ec3bb11af92483d.tar.gz
crawl-ref-6845f79a5ed4314c86878d013ec3bb11af92483d.zip
Unify check for unknown staircases in is_unknown_staircase.
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index 37ecb261ea..119405fbac 100644
--- a/crawl-ref/source/tutorial.cc
+++ b/crawl-ref/source/tutorial.cc
@@ -4220,7 +4220,7 @@ static void _tutorial_describe_feature(int x, int y)
"<w>Shift</w>. ";
#endif
- if (feat_is_travelable_stair(feat) && !travel_cache.know_stair(where))
+ if (is_unknown_stair(where))
{
ostr << "\n\nYou have not yet passed through this particular "
"set of stairs. ";
@@ -4253,8 +4253,7 @@ static void _tutorial_describe_feature(int x, int y)
"clicking the <w>left mouse button</w> while pressing "
"<w>Shift</w> instead. ";
#endif
- if (feat_is_travelable_stair(feat)
- && !travel_cache.know_stair(where))
+ if (is_unknown_stair(where))
{
ostr << "\n\nYou have not yet passed through this "
"particular set of stairs. ";