summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-30 05:16:17 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-30 05:16:17 +0000
commitef823a353aba810c62754850f68d1fa619a44a66 (patch)
tree8d0bbcb2b90b240cb42d6a7367960788b4a3d787 /crawl-ref/source/describe.cc
parentfa635dbc372c569f1f98cbb839e971c185d4cf3f (diff)
downloadcrawl-ref-ef823a353aba810c62754850f68d1fa619a44a66.tar.gz
crawl-ref-ef823a353aba810c62754850f68d1fa619a44a66.zip
Fixed extra keypress needed to navigate out of spellbook descriptions when examining books in shops (Erik).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2676 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index cab0fb3c99..350c7a51f4 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -3455,9 +3455,9 @@ void describe_item( item_def &item, bool allow_inscribe )
gotoxy(1, wherey());
textcolor(LIGHTGREY);
cprintf("Select a spell to read its description.");
- if (!describe_spells(item))
- break;
- continue;
+ if (describe_spells(item))
+ continue;
+ return;
}
break;
}
@@ -3471,7 +3471,8 @@ void describe_item( item_def &item, bool allow_inscribe )
else if (allow_inscribe && wherey() <= get_number_of_lines() - 3)
{
gotoxy(1, wherey() + 2);
- formatted_string::parse_string("<cyan>Do you wish to inscribe this item? ").display();
+ formatted_string::parse_string(
+ "<cyan>Do you wish to inscribe this item? ").display();
if (toupper(getch()) == 'Y')
{
@@ -3485,7 +3486,6 @@ void describe_item( item_def &item, bool allow_inscribe )
}
else if (getch() == 0)
getch();
-
}