summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-12 01:49:12 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-12 01:49:12 +0000
commitaf9d6c8e0e2e3f58d255449716ad7875cde5ae07 (patch)
tree1a2d6ffcad7f74d1fbebaa349233928bd60d8d2e /crawl-ref/source/player.cc
parent192cbf9887aae64c3ef02cde310ee3175a0d4fb5 (diff)
downloadcrawl-ref-af9d6c8e0e2e3f58d255449716ad7875cde5ae07.tar.gz
crawl-ref-af9d6c8e0e2e3f58d255449716ad7875cde5ae07.zip
General code improvements.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7220 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index cfec9d3b8a..1e38fb5282 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -6041,12 +6041,8 @@ static bool _equipment_make_berserk()
if (!is_random_artefact(*item))
continue;
- if (one_chance_in(20)
- && randart_wpn_property(*item,
- static_cast<randart_prop_type>(RAP_ANGRY)))
- {
+ if (randart_wpn_property(*item, RAP_ANGRY) && one_chance_in(20))
return (true);
- }
}
// nothing found