summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/command.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-28 23:00:12 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-28 23:00:12 +0000
commitca1e897a646bb9c098a1fc651a3b4aa6c976ddc7 (patch)
treedbf6313bff2e2906a4f9ee61fdefff8594849522 /crawl-ref/source/command.cc
parent0f8c8527e5a685509462e0990a7b6ec6595e445a (diff)
downloadcrawl-ref-ca1e897a646bb9c098a1fc651a3b4aa6c976ddc7.tar.gz
crawl-ref-ca1e897a646bb9c098a1fc651a3b4aa6c976ddc7.zip
Apply r6640, r6694 (both by Darshan), r6670 (Haran), r6679 and r6703
(me) to branch. Includes TSO no longer granting permanent allies and resultant friendly pickup change, and a number of smaller changes. Also update change log. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6709 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r--crawl-ref/source/command.cc18
1 files changed, 10 insertions, 8 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc
index 501e8ada2a..49abe4aaa9 100644
--- a/crawl-ref/source/command.cc
+++ b/crawl-ref/source/command.cc
@@ -296,18 +296,18 @@ void adjust(void)
void swap_inv_slots(int from_slot, int to_slot, bool verbose)
{
- // swap items
+ // Swap items.
item_def tmp = you.inv[to_slot];
- you.inv[to_slot] = you.inv[from_slot];
+ you.inv[to_slot] = you.inv[from_slot];
you.inv[from_slot] = tmp;
- // slot switching
+ // Slot switching.
tmp.slot = you.inv[to_slot].slot;
- you.inv[to_slot].slot = you.inv[from_slot].slot;
+ you.inv[to_slot].slot = you.inv[from_slot].slot;
you.inv[from_slot].slot = tmp.slot;
you.inv[from_slot].link = from_slot;
- you.inv[to_slot].link = to_slot;
+ you.inv[to_slot].link = to_slot;
for (int i = 0; i < NUM_EQUIP; i++)
{
@@ -330,6 +330,8 @@ void swap_inv_slots(int from_slot, int to_slot, bool verbose)
you.wield_change = true;
you.m_quiver->on_weapon_changed();
}
+ else // just to make sure
+ you.redraw_quiver = true;
}
static void _adjust_item(void)
@@ -375,12 +377,12 @@ static void _adjust_spells(void)
int keyin = 0;
if (Options.auto_list)
- keyin = list_spells();
+ keyin = list_spells(false);
else
{
keyin = get_ch();
if (keyin == '?' || keyin == '*')
- keyin = list_spells();
+ keyin = list_spells(false);
}
if (!isalpha(keyin))
@@ -391,7 +393,7 @@ static void _adjust_spells(void)
const int input_1 = keyin;
const int index_1 = letter_to_index( input_1 );
- spell_type spell = get_spell_by_letter( input_1 );
+ spell_type spell = get_spell_by_letter( input_1 );
if (spell == SPELL_NO_SPELL)
{