summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-30 05:19:01 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-30 05:19:01 +0000
commit6a07f6efbab1d8d67bb82df5c86123104ddf3439 (patch)
treeca6d8758cf80c23044d500ee0e314d1267d25c87
parent1267f6de0cdbf8249a402b85caa97c5488f15194 (diff)
downloadcrawl-ref-6a07f6efbab1d8d67bb82df5c86123104ddf3439.tar.gz
crawl-ref-6a07f6efbab1d8d67bb82df5c86123104ddf3439.zip
Trunk->0.3 merge (2676): Fixed extra keypress when examining books in shops.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.3@2677 c06c8d41-db1a-0410-9941-cceddc491573
-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 60d631ffbd..134d1ab1df 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -3421,9 +3421,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;
}
@@ -3437,7 +3437,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')
{
@@ -3451,7 +3452,6 @@ void describe_item( item_def &item, bool allow_inscribe )
}
else if (getch() == 0)
getch();
-
}