From cca6195c042a64fed711dba3ea0d94bc78b410df Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 3 Dec 2007 01:43:25 +0000 Subject: Add minor whitespace and comment fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2986 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 23a783319a..5fbaf7423c 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -1758,7 +1758,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, // CALCULATIONS FOR LAUNCHED WEAPONS if (projected == LRET_LAUNCHED) { - const item_def &launcher = you.inv[you.equip[EQ_WEAPON]]; + const item_def &launcher = you.inv[you.equip[EQ_WEAPON]]; const int bow_brand = get_weapon_brand( launcher ); const int ammo_brand = get_ammo_brand( item ); bool poisoned = (ammo_brand == SPMSL_POISONED); @@ -1797,7 +1797,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, // fix ammo damage bonus, since missiles only use inv_plus ammoDamBonus = ammoHitBonus; - // check for matches; dwarven,elven,orcish + // check for matches; dwarven, elven, orcish if (!get_equip_race(you.inv[you.equip[EQ_WEAPON]]) == 0) { if (get_equip_race( you.inv[you.equip[EQ_WEAPON]] ) @@ -2082,7 +2082,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, && (wepType == MI_STONE || wepType == MI_LARGE_ROCK))) { // elves with elven weapons - if (get_equip_race(item) == ISFLAG_ELVEN + if (get_equip_race(item) == ISFLAG_ELVEN && player_genus(GENPC_ELVEN)) baseHit += 1; -- cgit v1.2.3-54-g00ecf