diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-17 21:13:31 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-17 21:13:31 +0000 |
commit | 5b888a167af42417cdf3f75e754fcbc7ae826107 (patch) | |
tree | 8b8607c01be3a1d2dbca857d54b534f716a89c26 | |
parent | 3738559721d08c98bbf42b5debddee0cac63196b (diff) | |
download | crawl-ref-5b888a167af42417cdf3f75e754fcbc7ae826107.tar.gz crawl-ref-5b888a167af42417cdf3f75e754fcbc7ae826107.zip |
Fix [1974594]: tutorial item description going off the bottom of the screen.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9119 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/misc.cc | 3 | ||||
-rw-r--r-- | crawl-ref/source/tutorial.cc | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 94b6758a96..5b4300013c 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -2064,8 +2064,7 @@ void down_stairs( int old_level, dungeon_feature_type force_stair, find_trap(you.pos())->destroy(); return; } - shaft_level = absdungeon_depth(shaft_dest.branch, - shaft_dest.depth); + shaft_level = absdungeon_depth(shaft_dest.branch, shaft_dest.depth); if (you.flight_mode() != FL_FLY || force_stair) mpr("You fall through a shaft!"); diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc index 464327d37e..18326f1689 100644 --- a/crawl-ref/source/tutorial.cc +++ b/crawl-ref/source/tutorial.cc @@ -3473,7 +3473,7 @@ void tutorial_inscription_info(bool autoinscribe, std::string prompt) text << "<" << colour_to_str(channel_to_colour(MSGCH_TUTORIAL)) << ">"; bool longtext = false; - if (!autoinscribe || wherey() <= get_number_of_lines() - 10) + if (wherey() <= get_number_of_lines() - (autoinscribe ? 10 : 8)) { text << EOL "Inscriptions are a powerful concept of Dungeon Crawl." EOL |