summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/item_use.cc2
-rw-r--r--crawl-ref/source/itemprop.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 6b34a39fec..98e5d90162 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2299,7 +2299,9 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
// elves with elven weapons
if (get_equip_race(item) == ISFLAG_ELVEN
&& player_genus(GENPC_ELVEN))
+ {
baseHit += 1;
+ }
// give an appropriate 'tohit' -
// hand axes and clubs are -5
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 104cac560b..ea0bf3c5fb 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -1911,7 +1911,7 @@ bool has_launcher( const item_def &wpn )
}
// returns true if item can be reasonably thrown without a launcher
-bool is_throwable( const item_def &wpn, size_type bodysize )
+bool is_throwable( const item_def &wpn, size_type bodysize )
{
if (wpn.base_type == OBJ_WEAPONS)
return (Weapon_prop[ Weapon_index[wpn.sub_type] ].throwable);