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-06-10 15:29:56 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-10 15:29:56 +0000
commitf6b8a1eea325bf2a8e9e81bf8d57c84d22787e6c (patch)
treed460601ff4a8306957df99184cf69d31df171f23 /crawl-ref/source/command.cc
parent8fcf9242d71cf3fa44ad46bc5e37313e8b6b73b9 (diff)
downloadcrawl-ref-f6b8a1eea325bf2a8e9e81bf8d57c84d22787e6c.tar.gz
crawl-ref-f6b8a1eea325bf2a8e9e81bf8d57c84d22787e6c.zip
Clean-up (renaming static methods and comments) in a number of files.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5703 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r--crawl-ref/source/command.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc
index eb04dafcd5..3d6f26c32c 100644
--- a/crawl-ref/source/command.cc
+++ b/crawl-ref/source/command.cc
@@ -369,9 +369,9 @@ static void _adjust_ability(void)
canned_msg( MSG_OK );
return;
}
- else if ( isalpha(keyin) )
+ else if (isalpha(keyin))
{
- // try to find the hotkey
+ // Try to find the hotkey.
for (unsigned int i = 0; i < talents.size(); ++i)
{
if ( talents[i].hotkey == keyin )
@@ -381,7 +381,7 @@ static void _adjust_ability(void)
}
}
- // if we can't, cancel out
+ // If we can't, cancel out.
if ( selected < 0 )
{
mpr("No such ability.");
@@ -414,7 +414,7 @@ static void _adjust_ability(void)
return;
}
- // see if we moved something out
+ // See if we moved something out.
bool printed_message = false;
for ( unsigned int i = 0; i < talents.size(); ++i )
{
@@ -435,7 +435,7 @@ static void _adjust_ability(void)
<< ability_name(talents[selected].which)
<< std::endl;
- // swap references in the letter table
+ // Swap references in the letter table.
ability_type tmp = you.ability_letter_table[index2];
you.ability_letter_table[index2] = you.ability_letter_table[index1];
you.ability_letter_table[index1] = tmp;
@@ -485,7 +485,7 @@ void list_armour()
mpr( estr.str().c_str(), MSGCH_EQUIPMENT, colour);
}
-} // end list_armour()
+}
void list_jewellery(void)
{
@@ -555,7 +555,7 @@ void list_weapons(void)
mpr(wstring.c_str(), MSGCH_EQUIPMENT, colour);
- // Print out the swap slots
+ // Print out the swap slots.
for (int i = 0; i <= 1; i++)
{
// We'll avoid repeating the current weapon for these slots,
@@ -588,7 +588,7 @@ void list_weapons(void)
mpr(wstring.c_str(), MSGCH_EQUIPMENT, colour);
}
- // Now we print out the current default fire weapon
+ // Now we print out the current default fire weapon.
wstring = "Firing : ";
const item_def* item;