diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
commit | b15461dbcedf27f28a843f700ce0473d57364230 (patch) | |
tree | c8721bdfda19f26f2ae7b2171897a3c4e645100e /src/cmd2.cc | |
parent | 0cd5370d552babada63b59003e7629c180d4eeaa (diff) |
Remove redundant checks "around" artifact_p()
Turns out artifact_p() already performs the necessary checks.
Diffstat (limited to 'src/cmd2.cc')
-rw-r--r-- | src/cmd2.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd2.cc b/src/cmd2.cc index a67f1fda..b0c9e38e 100644 --- a/src/cmd2.cc +++ b/src/cmd2.cc @@ -4166,8 +4166,7 @@ void do_cmd_boomerang(void) j = (hit_body ? breakage_chance(o_ptr) : 0); /* Break the boomerang */ - if (!(o_ptr->art_name || artifact_p(o_ptr)) && - (rand_int(100) < j)) + if ((!artifact_p(o_ptr)) && (rand_int(100) < j)) { msg_print(format("Your %s is destroyed.", o_name)); inc_stack_size_ex(INVEN_BOW, -1, OPTIMIZE, NO_DESCRIBE); |