From ef823a353aba810c62754850f68d1fa619a44a66 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Tue, 30 Oct 2007 05:16:17 +0000 Subject: 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 --- crawl-ref/source/describe.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/describe.cc') 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("Do you wish to inscribe this item? ").display(); + formatted_string::parse_string( + "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(); - } -- cgit v1.2.3-54-g00ecf