w_blocks()
Add the fix that silences whatever extra warning was enabled for the onefile testing. The original already worked as intended.
This commit is contained in:
11
src/worn.c
11
src/worn.c
@@ -34,12 +34,11 @@ const struct worn {
|
|||||||
|
|
||||||
/* This only allows for one blocking item per property */
|
/* This only allows for one blocking item per property */
|
||||||
#define w_blocks(o, m) \
|
#define w_blocks(o, m) \
|
||||||
((o->otyp == MUMMY_WRAPPING && ((m) & W_ARMC)) \
|
((o->otyp == MUMMY_WRAPPING && ((m) & W_ARMC) != 0L) ? INVIS \
|
||||||
? INVIS \
|
: (o->otyp == CORNUTHAUM && ((m) & W_ARMH) != 0L \
|
||||||
: (o->otyp == CORNUTHAUM && ((m) & W_ARMH) && !Role_if(PM_WIZARD)) \
|
&& !Role_if(PM_WIZARD)) ? CLAIRVOYANT \
|
||||||
? CLAIRVOYANT \
|
: 0)
|
||||||
: 0)
|
/* note: monsters don't have clairvoyance, so dependency on hero's role here
|
||||||
/* note: monsters don't have clairvoyance, so your role
|
|
||||||
has no significant effect on their use of w_blocks() */
|
has no significant effect on their use of w_blocks() */
|
||||||
|
|
||||||
/* Updated to use the extrinsic and blocked fields. */
|
/* Updated to use the extrinsic and blocked fields. */
|
||||||
|
|||||||
Reference in New Issue
Block a user