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
+2 -2
View File
@@ -1356,8 +1356,8 @@ E void FDECL(mnexto, (struct monst *));
E void FDECL(maybe_mnexto, (struct monst *)); E void FDECL(maybe_mnexto, (struct monst *));
E boolean FDECL(mnearto, (struct monst *, XCHAR_P, XCHAR_P, BOOLEAN_P)); E boolean FDECL(mnearto, (struct monst *, XCHAR_P, XCHAR_P, BOOLEAN_P));
E void FDECL(m_respond, (struct monst *)); E void FDECL(m_respond, (struct monst *));
E void FDECL(setmangry, (struct monst *, boolean)); E void FDECL(setmangry, (struct monst *, BOOLEAN_P));
E void FDECL(wakeup, (struct monst *, boolean)); E void FDECL(wakeup, (struct monst *, BOOLEAN_P));
E void NDECL(wake_nearby); E void NDECL(wake_nearby);
E void FDECL(wake_nearto, (int, int, int)); E void FDECL(wake_nearto, (int, int, int));
E void FDECL(seemimic, (struct monst *)); E void FDECL(seemimic, (struct monst *));
+3 -2
View File
@@ -96,8 +96,9 @@ register struct obj *obj;
if (!Blind) if (!Blind)
pline("%s shining.", Tobjnam(olduwep, "stop")); pline("%s shining.", Tobjnam(olduwep, "stop"));
} }
if (uwep == obj && ((uwep && uwep->oartifact == ART_OGRESMASHER) if (uwep == obj
|| olduwep && olduwep->oartifact == ART_OGRESMASHER)) && ((uwep && uwep->oartifact == ART_OGRESMASHER)
|| (olduwep && olduwep->oartifact == ART_OGRESMASHER)))
context.botl = 1; context.botl = 1;
/* Note: Explicitly wielding a pick-axe will not give a "bashing" /* Note: Explicitly wielding a pick-axe will not give a "bashing"
* message. Wielding one via 'a'pplying it will. * message. Wielding one via 'a'pplying it will.