summaryrefslogtreecommitdiff
path: root/src/spells2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
commitb15461dbcedf27f28a843f700ce0473d57364230 (patch)
treec8721bdfda19f26f2ae7b2171897a3c4e645100e /src/spells2.cc
parent0cd5370d552babada63b59003e7629c180d4eeaa (diff)
Remove redundant checks "around" artifact_p()
Turns out artifact_p() already performs the necessary checks.
Diffstat (limited to 'src/spells2.cc')
-rw-r--r--src/spells2.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spells2.cc b/src/spells2.cc
index bc5b8642..2b776c4f 100644
--- a/src/spells2.cc
+++ b/src/spells2.cc
@@ -728,7 +728,7 @@ bool_ alchemy(void) /* Turns an object into gold, gain some of its value in a sh
}
/* Artifacts cannot be destroyed */
- if (artifact_p(o_ptr) || o_ptr->art_name)
+ if (artifact_p(o_ptr))
{
byte feel = SENSE_SPECIAL;
@@ -2695,7 +2695,7 @@ bool_ enchant(object_type *o_ptr, int n, int eflag)
{
int i, chance, prob;
bool_ res = FALSE;
- bool_ a = (artifact_p(o_ptr) || o_ptr->art_name);
+ auto const a = artifact_p(o_ptr);
/* Extract the flags */
@@ -3252,7 +3252,7 @@ static void note_found_object(object_type *o_ptr)
char note[150];
char item_name[80];
- if (artifact_p(o_ptr) || o_ptr->name1)
+ if (artifact_p(o_ptr))
{
object_desc(item_name, o_ptr, FALSE, 0);