diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-27 10:01:26 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-27 10:01:26 +0000 |
commit | 4d5a197bc8c4d782e374364286ce91fd2e118758 (patch) | |
tree | 12901f8b4121ecebc13c2c75cc18aeeaa8627ba4 /crawl-ref/source/misc.cc | |
parent | 05d3781c9f84d761b4f0aa7c3241aea9523710f8 (diff) | |
download | crawl-ref-4d5a197bc8c4d782e374364286ce91fd2e118758.tar.gz crawl-ref-4d5a197bc8c4d782e374364286ce91fd2e118758.zip |
Yet another session of comment/whitespace cleanups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5291 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 6424b506af..868db37481 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -339,7 +339,7 @@ void maybe_coagulate_blood_potions_floor(int obj) return; } - // else, create a new stack of potions + // Else, create a new stack of potions. int o = get_item_slot( 20 ); if (o == NON_ITEM) return; @@ -585,7 +585,7 @@ bool maybe_coagulate_blood_potions_inv(item_def &blood) return (rot_count > 0); } - // else, create new stack in inventory + // Else, create new stack in inventory. int freeslot = find_free_slot(blood); if (freeslot >= 0 && freeslot < ENDOFPACK && !is_valid_item(you.inv[freeslot])) @@ -1000,7 +1000,7 @@ void split_potions_into_decay( int obj, int amount, bool need_msg ) item.quantity = amount; item.x = -1; item.y = -1; - // keep description as it was + // Keep description as it was. item.plus = potion.plus; item.plus2 = 0; item.special = 0; @@ -1012,7 +1012,7 @@ void split_potions_into_decay( int obj, int amount, bool need_msg ) } // Okay, inventory is full. - // check whether we can merge with an existing stack on the floor + // Check whether we can merge with an existing stack on the floor. int o = igrd[you.x_pos][you.y_pos]; while (o != NON_ITEM) { @@ -1027,13 +1027,13 @@ void split_potions_into_decay( int obj, int amount, bool need_msg ) } // only bother creating a distinct stack of potions - // if it won't get destroyed right away + // if it won't get destroyed right away. if (!grid_destroys_items(grd[you.x_pos][you.y_pos])) { item_def potion2; potion2.base_type = OBJ_POTIONS; potion2.sub_type = POT_DECAY; - // keep description as it was + // Keep description as it was. potion2.plus = potion.plus; potion2.quantity = amount; potion2.colour = potion.colour; @@ -1043,11 +1043,11 @@ void split_potions_into_decay( int obj, int amount, bool need_msg ) copy_item_to_grid( potion2, you.x_pos, you.y_pos ); } - // is decreased even if the decay stack goes splat + // Is decreased even if the decay stack goes splat. dec_inv_item_quantity(obj, amount); } -// checks whether the player or a monster is capable of bleeding +// Checks whether the player or a monster is capable of bleeding. bool victim_can_bleed(int montype) { if (montype == -1) // player |