update commented-out macro in artifact.c

This commit is contained in:
nhmall
2023-12-16 06:39:26 -05:00
parent 2138841e63
commit 603fd18a1e
+4 -2
View File
@@ -17,7 +17,8 @@
static struct artifact *get_artifact(struct obj *) NONNULL; /* never returns null */ static struct artifact *get_artifact(struct obj *) NONNULL; /* never returns null */
/* #define get_artifact(o) \ /* #define get_artifact(o) \
(((o) && (o)->oartifact) ? &artilist[(int) (o)->oartifact] \ (((o) && ((o)->artifact > 0 && (o)->artifact < AFTER_LAST_ARTIFACT)) \
? &artilist[(int) (o)->oartifact] \
: &artilist[ART_NONARTIFACT]) */ : &artilist[ART_NONARTIFACT]) */
static boolean bane_applies(const struct artifact *, struct monst *) NONNULLARG12; static boolean bane_applies(const struct artifact *, struct monst *) NONNULLARG12;
@@ -2545,7 +2546,8 @@ is_art(struct obj *obj, int art)
} }
/* #define get_artifact(o) \ /* #define get_artifact(o) \
(((o) && (o)->oartifact) ? &artilist[(int) (o)->oartifact] \ (((o) && ((o)->artifact > 0 && (o)->artifact < AFTER_LAST_ARTIFACT)) \
? &artilist[(int) (o)->oartifact] \
: &artilist[ART_NONARTIFACT]) */ : &artilist[ART_NONARTIFACT]) */
static struct artifact * static struct artifact *