summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-09 17:23:49 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-09 17:23:49 +0000
commit575e3d6f27c6a06626479dd652a087a522ad008c (patch)
tree1126b5804c8cb4335c34bf94f8f12150fa9cdd15 /crawl-ref/source
parentabda8eb1f0513097c7c3eabdc603d8c683a79ce5 (diff)
downloadcrawl-ref-575e3d6f27c6a06626479dd652a087a522ad008c.tar.gz
crawl-ref-575e3d6f27c6a06626479dd652a087a522ad008c.zip
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3555 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-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);