fix some recent lint

This commit is contained in:
PatR
2016-12-08 16:01:09 -08:00
parent 97ffc0f53d
commit 66a0c98954
2 changed files with 5 additions and 4 deletions

View File

@@ -1356,8 +1356,8 @@ E void FDECL(mnexto, (struct monst *));
E void FDECL(maybe_mnexto, (struct monst *));
E boolean FDECL(mnearto, (struct monst *, XCHAR_P, XCHAR_P, BOOLEAN_P));
E void FDECL(m_respond, (struct monst *));
E void FDECL(setmangry, (struct monst *, boolean));
E void FDECL(wakeup, (struct monst *, boolean));
E void FDECL(setmangry, (struct monst *, BOOLEAN_P));
E void FDECL(wakeup, (struct monst *, BOOLEAN_P));
E void NDECL(wake_nearby);
E void FDECL(wake_nearto, (int, int, int));
E void FDECL(seemimic, (struct monst *));

View File

@@ -96,8 +96,9 @@ register struct obj *obj;
if (!Blind)
pline("%s shining.", Tobjnam(olduwep, "stop"));
}
if (uwep == obj && ((uwep && uwep->oartifact == ART_OGRESMASHER)
|| olduwep && olduwep->oartifact == ART_OGRESMASHER))
if (uwep == obj
&& ((uwep && uwep->oartifact == ART_OGRESMASHER)
|| (olduwep && olduwep->oartifact == ART_OGRESMASHER)))
context.botl = 1;
/* Note: Explicitly wielding a pick-axe will not give a "bashing"
* message. Wielding one via 'a'pplying it will.