diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-24 14:45:58 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-24 14:45:58 +0000 |
commit | 35c489ed9b277beaad1bf41e788a6f61ce03ccb1 (patch) | |
tree | 53866df32af1ecf0bcb7991c10bf7313d4e9f0b5 /crawl-ref/source/invent.cc | |
parent | a117fb1baf5f81a56014a174f0400622cdf2ab5d (diff) | |
download | crawl-ref-35c489ed9b277beaad1bf41e788a6f61ce03ccb1.tar.gz crawl-ref-35c489ed9b277beaad1bf41e788a6f61ce03ccb1.zip |
Tweak quiver command some more (allow clearing quiver).
Update documentation.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6113 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r-- | crawl-ref/source/invent.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index e2955ca7db..fb0d215369 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -178,9 +178,9 @@ std::string InvEntry::get_text() const std::ostringstream tstr; tstr << ' ' << static_cast<char>(hotkeys[0]) << ' '; - if ( !selected_qty ) + if (!selected_qty) tstr << '-'; - else if ( selected_qty < quantity ) + else if (selected_qty < quantity) tstr << '#'; else tstr << '+'; @@ -192,7 +192,7 @@ std::string InvEntry::get_text() const tstr << " (" << value << " gold)"; } - if ( Options.show_inventory_weights ) + if (Options.show_inventory_weights) { const int mass = item_mass(*item) * item->quantity; tstr << std::setw(get_number_of_cols() - tstr.str().length() - 1) @@ -694,8 +694,10 @@ unsigned char InvMenu::getkey() const { unsigned char mkey = lastch; if (!isalnum(mkey) && mkey != '$' && mkey != '-' && mkey != '?' - && mkey != '*' && mkey != ESCAPE) + && mkey != '*' && mkey != ESCAPE) + { mkey = ' '; + } return (mkey); } |