summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-28 12:52:46 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-28 12:52:46 +0000
commit431848df80d80f851b7a2e8ac36247ef1c771543 (patch)
tree9777635704a7ba81f7a4d4815a7db0194573e1d6 /crawl-ref/source/items.cc
parent7c77ddbf2a9f0c56d9832e11780cc8449da2d0bb (diff)
downloadcrawl-ref-431848df80d80f851b7a2e8ac36247ef1c771543.tar.gz
crawl-ref-431848df80d80f851b7a2e8ac36247ef1c771543.zip
Call flush_prev_message() before getch(), cancelable_get_line() and
mpr_formatted_output(). Fixes 2647846. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9275 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 32fd5bb188..c91e3bd8d3 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -742,7 +742,7 @@ void item_check(bool verbose)
if (static_cast<int>(items.size()) >= Options.item_stack_summary_minimum)
{
std::vector<unsigned short int> item_chars;
- for ( unsigned int i = 0; i < items.size() && i < 50; ++i )
+ for (unsigned int i = 0; i < items.size() && i < 50; ++i)
{
unsigned glyph_char;
unsigned short glyph_col;
@@ -754,10 +754,10 @@ void item_check(bool verbose)
std::string out_string = "Items here: ";
int cur_state = -1;
- for ( unsigned int i = 0; i < item_chars.size(); ++i )
+ for (unsigned int i = 0; i < item_chars.size(); ++i)
{
const int specialness = 10 - (item_chars[i] % 0x100);
- if ( specialness != cur_state )
+ if (specialness != cur_state)
{
switch (specialness)
{